multiStatmentAllow config

This commit is contained in:
温少
2012-03-20 01:30:13 +08:00
parent 0756bff598
commit 636a815c84
18 changed files with 17 additions and 4362 deletions
@@ -104,7 +104,7 @@ public abstract class WallProvider {
return Collections.<Violation> singletonList(new IllegalSQLObjectViolation(sql));
}
if (statementList.size() > 1) {
if (statementList.size() > 1 && !config.isMultiStatementAllow()) {
return Collections.<Violation> singletonList(new IllegalSQLObjectViolation(sql));
}