mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql wall
This commit is contained in:
@@ -36,7 +36,9 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean createTableAllow = true;
|
||||
private boolean dropTableAllow = true;
|
||||
private boolean alterTableAllow = true;
|
||||
|
||||
private boolean conditionAndAlwayTrueAllow = false;
|
||||
private boolean conditionDoubleConstAllow = false;
|
||||
|
||||
private boolean selectAllColumnAllow = true;
|
||||
|
||||
@@ -110,6 +112,14 @@ public class WallConfig implements WallConfigMBean {
|
||||
|
||||
}
|
||||
|
||||
public boolean isConditionDoubleConstAllow() {
|
||||
return conditionDoubleConstAllow;
|
||||
}
|
||||
|
||||
public void setConditionDoubleConstAllow(boolean conditionDoubleConstAllow) {
|
||||
this.conditionDoubleConstAllow = conditionDoubleConstAllow;
|
||||
}
|
||||
|
||||
public boolean isLimitZeroAllow() {
|
||||
return limitZeroAllow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user