mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -111,6 +111,21 @@ public class WallFilterTest extends TestCase {
|
||||
conn.close();
|
||||
}
|
||||
Assert.assertEquals(6, wallFilter.getProvider().getTableStat("t").getUpdateDataCount());
|
||||
{
|
||||
Connection conn = dataSource.getConnection();
|
||||
PreparedStatement stmt = conn.prepareStatement("update t SET fname = 'xx' where FID = ?");
|
||||
|
||||
stmt.setInt(1, 3);
|
||||
stmt.addBatch();
|
||||
|
||||
stmt.setInt(1, 4);
|
||||
stmt.addBatch();
|
||||
|
||||
stmt.executeBatch();
|
||||
stmt.close();
|
||||
conn.close();
|
||||
}
|
||||
Assert.assertEquals(8, wallFilter.getProvider().getTableStat("t").getUpdateDataCount());
|
||||
|
||||
{
|
||||
Connection conn = dataSource.getConnection();
|
||||
|
||||
Reference in New Issue
Block a user