mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved wallfilter. support update column check.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user