01: /*
02:
03: Derby - Class org.apache.derbyTesting.functionTests.harness.procedure
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
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: public class dropcrash2 extends dropcrash {
36: boolean verbose = false;
37:
38: public dropcrash2() {
39: }
40:
41: public void testList(Connection conn) throws SQLException {
42: // make sure after redo phase that all tables are consistent, without
43: // bug fix one of the tables will get a container not found exception.
44: beginTest(conn, "check consistency of all tables");
45: checkAllConsistency(conn);
46: endTest(conn, "check consistency of all tables");
47: }
48:
49: public static void main(String[] argv) throws Throwable {
50: dropcrash2 test = new dropcrash2();
51:
52: ij.getPropertyArg(argv);
53: Connection conn = ij.startJBMS();
54: conn.setAutoCommit(false);
55:
56: try {
57: test.testList(conn);
58: } catch (SQLException sqle) {
59: org.apache.derby.tools.JDBCDisplayUtil.ShowSQLException(
60: System.out, sqle);
61: sqle.printStackTrace(System.out);
62: }
63: }
64: }
|