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:
@@ -32,6 +32,8 @@ public class WallCheckResult {
|
||||
|
||||
private final boolean syntaxError;
|
||||
|
||||
private final WallSqlStat sqlStat;
|
||||
|
||||
public WallCheckResult(){
|
||||
this(null);
|
||||
}
|
||||
@@ -50,15 +52,17 @@ public class WallCheckResult {
|
||||
statementList = stmtList;
|
||||
syntaxError = false;
|
||||
}
|
||||
this.sqlStat = sqlStat;
|
||||
}
|
||||
|
||||
public WallCheckResult(WallSqlStat sqlStat){
|
||||
this(sqlStat, Collections.<SQLStatement> emptyList());
|
||||
}
|
||||
|
||||
public WallCheckResult(List<Violation> violations, Map<String, WallSqlTableStat> tableStats,
|
||||
public WallCheckResult(WallSqlStat sqlStat, List<Violation> violations, Map<String, WallSqlTableStat> tableStats,
|
||||
Map<String, WallSqlFunctionStat> functionStats, List<SQLStatement> statementList,
|
||||
boolean syntaxError){
|
||||
this.sqlStat = sqlStat;
|
||||
this.tableStats = tableStats;
|
||||
this.violations = violations;
|
||||
this.functionStats = functionStats;
|
||||
@@ -85,4 +89,9 @@ public class WallCheckResult {
|
||||
public boolean isSyntaxError() {
|
||||
return syntaxError;
|
||||
}
|
||||
|
||||
|
||||
public WallSqlStat getSqlStat() {
|
||||
return sqlStat;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user