📄 dropcrash2.java
字号:
/*
Derby - Class org.apache.derbyTesting.functionTests.harness.procedure
Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.derbyTesting.functionTests.tests.store;
import org.apache.derby.iapi.services.sanity.SanityManager;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.apache.derby.tools.ij;
public class dropcrash2 extends dropcrash
{
boolean verbose = false;
public dropcrash2()
{
}
public void testList(Connection conn)
throws SQLException
{
// make sure after redo phase that all tables are consistent, without
// bug fix one of the tables will get a container not found exception.
beginTest(conn, "check consistency of all tables");
checkAllConsistency(conn);
endTest(conn, "check consistency of all tables");
}
public static void main(String[] argv)
throws Throwable
{
dropcrash2 test = new dropcrash2();
ij.getPropertyArg(argv);
Connection conn = ij.startJBMS();
conn.setAutoCommit(false);
try
{
test.testList(conn);
}
catch (SQLException sqle)
{
org.apache.derby.tools.JDBCDisplayUtil.ShowSQLException(
System.out, sqle);
sqle.printStackTrace(System.out);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -