improve wall filter

This commit is contained in:
wenshao
2013-04-07 06:45:31 +08:00
parent 1e0ddfeae4
commit 97f5c7e9ef
2 changed files with 42 additions and 7 deletions
@@ -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();