mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql parser support > =
This commit is contained in:
@@ -930,9 +930,16 @@ public class SQLExprParser extends SQLParser {
|
||||
SQLExpr rightExp;
|
||||
|
||||
if (lexer.token() == Token.LT) {
|
||||
SQLBinaryOperator op = SQLBinaryOperator.LessThan;
|
||||
|
||||
lexer.nextToken();
|
||||
if (lexer.token() == Token.EQ) {
|
||||
lexer.nextToken();
|
||||
op = SQLBinaryOperator.LessThanOrEqual;
|
||||
}
|
||||
|
||||
rightExp = bitOr();
|
||||
expr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.LessThan, rightExp);
|
||||
expr = new SQLBinaryOpExpr(expr, op, rightExp);
|
||||
// expr = relationalRest(expr);
|
||||
} else if (lexer.token() == Token.LTEQ) {
|
||||
lexer.nextToken();
|
||||
|
||||
Reference in New Issue
Block a user