fix SQLBinaryOpExpr split bug && modify wall config

This commit is contained in:
kiki
2013-12-11 14:58:47 +08:00
parent 24382e7465
commit 16d3fe8d39
3 changed files with 9 additions and 8 deletions
@@ -293,6 +293,8 @@ public class SQLUtils {
public static List<SQLExpr> split(SQLBinaryOpExpr x) {
List<SQLExpr> groupList = new ArrayList<SQLExpr>();
groupList.add(x.getRight());
SQLExpr left = x.getLeft();
for (;;) {
if (left instanceof SQLBinaryOpExpr && ((SQLBinaryOpExpr) left).getOperator() == x.getOperator()) {
@@ -304,7 +306,6 @@ public class SQLUtils {
break;
}
}
groupList.add(x.getRight());
return groupList;
}
}