1 21 22 package org.apache.derbyTesting.functionTests.tests.store; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 26 import java.sql.CallableStatement ; 27 import java.sql.Connection ; 28 import java.sql.PreparedStatement ; 29 import java.sql.ResultSet ; 30 import java.sql.SQLException ; 31 import java.sql.Statement ; 32 33 import org.apache.derby.tools.ij; 34 35 36 public class dropcrash2 extends dropcrash 37 { 38 boolean verbose = false; 39 40 public dropcrash2() 41 { 42 } 43 44 public void testList(Connection conn) 45 throws SQLException 46 { 47 beginTest(conn, "check consistency of all tables"); 50 checkAllConsistency(conn); 51 endTest(conn, "check consistency of all tables"); 52 } 53 54 public static void main(String [] argv) 55 throws Throwable 56 { 57 dropcrash2 test = new dropcrash2(); 58 59 ij.getPropertyArg(argv); 60 Connection conn = ij.startJBMS(); 61 conn.setAutoCommit(false); 62 63 try 64 { 65 test.testList(conn); 66 } 67 catch (SQLException sqle) 68 { 69 org.apache.derby.tools.JDBCDisplayUtil.ShowSQLException( 70 System.out, sqle); 71 sqle.printStackTrace(System.out); 72 } 73 } 74 } 75 | Popular Tags |