improved sql parser SchemaStatVisitor, support between condition. bug fixed for #2093

This commit is contained in:
wenshao
2017-12-01 22:11:43 +08:00
parent eb7471eb47
commit aed92f8c47
2 changed files with 73 additions and 0 deletions
@@ -509,6 +509,22 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
return aggregateFunctions;
}
public boolean visit(SQLBetweenExpr x) {
SQLObject parent = x.getParent();
SQLExpr test = x.getTestExpr();
SQLExpr begin = x.getBeginExpr();
SQLExpr end = x.getEndExpr();
statExpr(test);
statExpr(begin);
statExpr(end);
handleCondition(test, "BETWEEN", begin, end);
return false;
}
public boolean visit(SQLBinaryOpExpr x) {
SQLObject parent = x.getParent();