improve parser

This commit is contained in:
wenshao
2013-04-19 16:58:26 +08:00
parent eb8d3d32ad
commit 7715fe152a
5 changed files with 71 additions and 2 deletions
@@ -469,7 +469,7 @@ public abstract class WallProvider {
violations.addAll(visitor.getViolations());
}
if (context != null && context.getWarnnings() >= 2) {
if (visitor.getViolations().size() == 0 && context != null && context.getWarnnings() >= 2) {
if (context.getDeleteNoneConditionWarnnings() > 0) {
violations.add(new IllegalSQLObjectViolation(ErrorCode.NONE_CONDITION, "delete none condition", sql));
} else if (context.getUpdateNoneConditionWarnnings() > 0) {