mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
db2 sql parser support concat binary operator
This commit is contained in:
@@ -1223,7 +1223,7 @@ public class SQLExprParser extends SQLParser {
|
||||
|
||||
expr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.Add, rightExp, getDbType());
|
||||
expr = additiveRest(expr);
|
||||
} else if (lexer.token() == Token.BARBAR) {
|
||||
} else if (lexer.token() == Token.BARBAR || lexer.token() == Token.CONCAT) {
|
||||
lexer.nextToken();
|
||||
SQLExpr rightExp = multiplicative();
|
||||
expr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.Concat, rightExp, getDbType());
|
||||
|
||||
Reference in New Issue
Block a user