use of com.alibaba.druid.wall.WallTableStat in project druid by alibaba.
the class WallStatTest_drop_table method testPG.
public void testPG() throws Exception {
WallProvider provider = new PGWallProvider();
provider.getConfig().setDropTableAllow(true);
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getDropCount());
}
use of com.alibaba.druid.wall.WallTableStat in project druid by alibaba.
the class WallStatTest_drop_table method testOracle.
public void testOracle() throws Exception {
WallProvider provider = new OracleWallProvider();
provider.getConfig().setDropTableAllow(true);
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getDropCount());
}
use of com.alibaba.druid.wall.WallTableStat in project druid by alibaba.
the class WallStatTest_insert method testMySql.
public void testMySql() throws Exception {
WallProvider provider = new MySqlWallProvider();
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getInsertCount());
}
use of com.alibaba.druid.wall.WallTableStat in project druid by alibaba.
the class WallStatTest_insert 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.getInsertCount());
}
use of com.alibaba.druid.wall.WallTableStat in project druid by alibaba.
the class WallStatTest_insert method testPG.
public void testPG() throws Exception {
WallProvider provider = new PGWallProvider();
Assert.assertTrue(provider.checkValid(sql));
WallTableStat tableStat = provider.getTableStat("t");
Assert.assertEquals(1, tableStat.getInsertCount());
}
Aggregations