mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -33,6 +33,9 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean selectWhereAlwayTrueCheck = true;
|
||||
private boolean selectHavingAlwayTrueCheck = true;
|
||||
private boolean selectUnionCheck = true;
|
||||
private boolean createTableAllow = false;
|
||||
private boolean dropTableAllow = false;
|
||||
private boolean alterTableAllow = false;
|
||||
|
||||
private boolean selectAllColumnAllow = true;
|
||||
|
||||
@@ -285,6 +288,30 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.selectIntoOutfileAllow = selectIntoOutfileAllow;
|
||||
}
|
||||
|
||||
public boolean isCreateTableAllow() {
|
||||
return createTableAllow;
|
||||
}
|
||||
|
||||
public void setCreateTableAllow(boolean createTableAllow) {
|
||||
this.createTableAllow = createTableAllow;
|
||||
}
|
||||
|
||||
public boolean isDropTableAllow() {
|
||||
return dropTableAllow;
|
||||
}
|
||||
|
||||
public void setDropTableAllow(boolean dropTableAllow) {
|
||||
this.dropTableAllow = dropTableAllow;
|
||||
}
|
||||
|
||||
public boolean isAlterTableAllow() {
|
||||
return alterTableAllow;
|
||||
}
|
||||
|
||||
public void setAlterTableAllow(boolean alterTableAllow) {
|
||||
this.alterTableAllow = alterTableAllow;
|
||||
}
|
||||
|
||||
public boolean isSelectUnionCheck() {
|
||||
return selectUnionCheck;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user