improve sql wall

This commit is contained in:
wenshao
2013-08-26 19:12:52 +08:00
parent ab6120791e
commit b4f345fb7a
2 changed files with 6 additions and 3 deletions
@@ -961,8 +961,11 @@ public class SQLEvalVisitorUtils {
x.putAttribute(EVAL_VALUE, value);
break;
case IsNot:
value = !eq(leftValue, rightValue);
x.putAttribute(EVAL_VALUE, value);
if (leftValue == EVAL_VALUE_NULL) {
x.putAttribute(EVAL_VALUE, false);
} else if (leftValue != null) {
x.putAttribute(EVAL_VALUE, true);
}
break;
case RegExp:
case RLike: {
@@ -60,7 +60,7 @@ public abstract class WallProvider {
private int MAX_SQL_LENGTH = 2048; // 1k
private int whiteSqlMaxSize = 500; // 1k
private int whiteSqlMaxSize = 1000; // 1k
private boolean blackListEnable = true;
private LRUCache<String, WallSqlStat> blackList;