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:
@@ -39,6 +39,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
|
||||
private boolean conditionAndAlwayTrueAllow = false;
|
||||
private boolean conditionDoubleConstAllow = false;
|
||||
private boolean conditionLikeTrueAllow = false;
|
||||
|
||||
private boolean selectAllColumnAllow = true;
|
||||
|
||||
@@ -58,7 +59,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean setAllow = true;
|
||||
private boolean commitAllow = true;
|
||||
private boolean rollbackAllow = true;
|
||||
private boolean useAllow = false;
|
||||
private boolean useAllow = true;
|
||||
|
||||
private boolean multiStatementAllow = false;
|
||||
|
||||
@@ -130,6 +131,14 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.conditionDoubleConstAllow = conditionDoubleConstAllow;
|
||||
}
|
||||
|
||||
public boolean isConditionLikeTrueAllow() {
|
||||
return conditionLikeTrueAllow;
|
||||
}
|
||||
|
||||
public void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow) {
|
||||
this.conditionLikeTrueAllow = conditionLikeTrueAllow;
|
||||
}
|
||||
|
||||
public boolean isLimitZeroAllow() {
|
||||
return limitZeroAllow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user