use of com.alibaba.druid.wall.spi.OracleWallProvider in project druid by alibaba.
the class WallStatTest_delete method testOracle.
public void testOracle() throws Exception {
WallProvider provider = new OracleWallProvider();
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getDeleteCount());
}
use of com.alibaba.druid.wall.spi.OracleWallProvider in project druid by alibaba.
the class WallStatTest_select method testOracle.
public void testOracle() throws Exception {
WallProvider provider = new OracleWallProvider();
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getSelectCount());
}
use of com.alibaba.druid.wall.spi.OracleWallProvider in project druid by alibaba.
the class WallStatTest_select_1 method testOracle.
public void testOracle() throws Exception {
WallProvider provider = new OracleWallProvider();
Assert.assertTrue(provider.checkValid(sql));
{
WallTableStat tableStat = provider.getTableStat("lhwbbs_posts_reply");
Assert.assertEquals(1, tableStat.getSelectCount());
}
{
WallTableStat tableStat = provider.getTableStat("lhwbbs_posts");
Assert.assertEquals(1, tableStat.getSelectCount());
}
}
use of com.alibaba.druid.wall.spi.OracleWallProvider in project druid by alibaba.
the class WallCommentTest method testORACLE.
public void testORACLE() throws Exception {
String sql = "SELECT F1, F2 FROM ABC --test";
OracleWallProvider provider = new OracleWallProvider();
Assert.assertFalse(provider.checkValid(sql));
Assert.assertEquals(1, provider.getCommentDenyStat().getDenyCount());
}
Aggregations