db2 sql parser support concat binary operator

This commit is contained in:
高铁
2016-05-06 16:50:05 +08:00
parent 8cdad2dad0
commit 2fb9763c77
6 changed files with 118 additions and 2 deletions
@@ -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());