sqll wall improved oracle support, fix #4103

This commit is contained in:
高铁
2020-12-26 06:27:38 +08:00
parent ff9a671fea
commit 0cdc717924
2 changed files with 17 additions and 4 deletions
@@ -2724,6 +2724,12 @@ public class WallVisitorUtils {
}
}
if ((!isWhite) && visitor.getDbType() == DbType.oracle) {
if (text.startsWith("+")) {
isWhite = true;
}
}
if (!isWhite) {
addViolation(visitor, ErrorCode.EVIL_HINTS, "hint not allow", x);
}