sql wall filter

This commit is contained in:
温少
2012-03-16 09:45:34 +08:00
9 changed files with 162 additions and 103 deletions
@@ -33,7 +33,7 @@ public class OnlineOracleTest3 extends TestCase {
}
public void test_connect() throws Exception {
executeQuery("select * from TAB");
executeQuery("select * from \"SYS\".TAB");
}
public void executeQuery(String sql) throws SQLException {
@@ -33,7 +33,7 @@ public class TestOnlineSQLTest3 extends TestCase {
// ResultSet rs = conn.getMetaData().getTables(null, null, null, null);
// JdbcUtils.printResultSet(rs);
String sql = "SELECT User,Password FROM mysql.user;";
String sql = "select benchmark( 1, sha1( 'test' ) )";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);