Merge pull request #2056 from sunsun314/master-1

#2055 change the function to parse the sql in the right of '~'
This commit is contained in:
温绍
2017-10-21 05:25:52 -05:00
committed by GitHub
@@ -693,7 +693,7 @@ public class SQLExprParser extends SQLParser {
break;
case TILDE:
lexer.nextToken();
SQLExpr unaryValueExpr = expr();
SQLExpr unaryValueExpr = primary();
SQLUnaryExpr unary = new SQLUnaryExpr(SQLUnaryOperator.Compl, unaryValueExpr);
sqlExpr = unary;
break;