1 21 22 package org.apache.derbyTesting.functionTests.tests.store; 23 24 import org.apache.derby.iapi.db.OnlineCompress; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 import java.sql.CallableStatement ; 29 import java.sql.Connection ; 30 import java.sql.PreparedStatement ; 31 import java.sql.ResultSet ; 32 import java.sql.SQLException ; 33 import java.sql.Statement ; 34 35 import org.apache.derby.tools.ij; 36 37 38 public class oc_rec4 extends OnlineCompressTest 39 { 40 41 public oc_rec4() 42 { 43 } 44 45 53 private void test1( 54 Connection conn, 55 String test_name, 56 String table_name) 57 throws SQLException 58 { 59 beginTest(conn, test_name); 60 61 String table_name_2 = table_name + "_2"; 64 if (!checkConsistency(conn, "APP", table_name_2)) 65 { 66 logError("conistency check failed."); 67 } 68 69 createAndLoadTable(conn, false, table_name_2, 6000, 0); 72 if (!checkConsistency(conn, "APP", table_name_2)) 73 { 74 logError("conistency check failed."); 75 } 76 endTest(conn, test_name); 77 } 78 79 public void testList(Connection conn) 80 throws SQLException 81 { 82 test1(conn, "test1", "TEST1"); 83 } 84 85 public static void main(String [] argv) 86 throws Throwable 87 { 88 oc_rec4 test = new oc_rec4(); 89 90 ij.getPropertyArg(argv); 91 Connection conn = ij.startJBMS(); 92 conn.setAutoCommit(false); 93 94 try 95 { 96 test.testList(conn); 97 } 98 catch (SQLException sqle) 99 { 100 org.apache.derby.tools.JDBCDisplayUtil.ShowSQLException( 101 System.out, sqle); 102 sqle.printStackTrace(System.out); 103 } 104 } 105 } 106 | Popular Tags |