mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql wall filter
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user