bug fixed for issue #1759 #1807

This commit is contained in:
wenshao
2017-07-12 00:40:38 +08:00
parent f2708bb208
commit a31afb10c4
2 changed files with 27 additions and 1 deletions
@@ -2396,7 +2396,9 @@ public class WallVisitorUtils {
boolean allow = false;
int errorCode;
String denyMessage;
if (x instanceof SQLInsertStatement) {
if (x instanceof SQLCommentStatement) {
return;
} else if (x instanceof SQLInsertStatement) {
allow = config.isInsertAllow();
denyMessage = "insert not allow";
errorCode = ErrorCode.INSERT_NOT_ALLOW;