mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps sql parser support
This commit is contained in:
@@ -1159,7 +1159,7 @@ public class Lexer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isFirstIdentifierChar(first) || first == '{') {
|
||||
if (isFirstIdentifierChar(first) || (first >= '0' && first <= '9') || first == '{') {
|
||||
stringVal = null;
|
||||
mark = pos;
|
||||
while (ch != ';' && ch != EOI) {
|
||||
|
||||
@@ -5245,7 +5245,7 @@ public class SQLExprParser extends SQLParser {
|
||||
}
|
||||
} else {
|
||||
if (lexer.token == Token.EQ) {
|
||||
if (dbType == DbType.odps) {
|
||||
if (dbType == DbType.odps && (parent instanceof SQLSetStatement || parent == null)) {
|
||||
lexer.nextTokenForSet();
|
||||
} else {
|
||||
lexer.nextToken();
|
||||
|
||||
Reference in New Issue
Block a user