improved wallfilter. support update column check.

This commit is contained in:
wenshao
2017-08-14 16:09:35 +08:00
parent e1a6d99c1c
commit e210b1608a
22 changed files with 459 additions and 64 deletions
@@ -16,6 +16,7 @@
package com.alibaba.druid.wall;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class WallContext {
@@ -33,6 +34,8 @@ public class WallContext {
private int deleteNoneConditionWarnings = 0;
private int likeNumberWarnings = 0;
private List<WallUpdateCheckItem> wallUpdateCheckItems;
public WallContext(String dbType){
this.dbType = dbType;
}
@@ -186,4 +189,11 @@ public class WallContext {
this.deleteNoneConditionWarnings++;
}
public List<WallUpdateCheckItem> getWallUpdateCheckItems() {
return wallUpdateCheckItems;
}
public void setWallUpdateCheckItems(List<WallUpdateCheckItem> wallUpdateCheckItems) {
this.wallUpdateCheckItems = wallUpdateCheckItems;
}
}