improved sql parser.

This commit is contained in:
wenshao
2017-08-25 00:29:12 +08:00
parent 026295ddbd
commit 76c441949f
35 changed files with 1442 additions and 211 deletions
@@ -60,10 +60,10 @@ public class SQLCreateTableParser extends SQLDDLParser {
accept(Token.CREATE);
}
if (identifierEquals("GLOBAL")) {
if (lexer.identifierEquals("GLOBAL")) {
lexer.nextToken();
if (identifierEquals("TEMPORARY")) {
if (lexer.identifierEquals("TEMPORARY")) {
lexer.nextToken();
createTable.setType(SQLCreateTableStatement.Type.GLOBAL_TEMPORARY);
} else {
@@ -134,7 +134,7 @@ public class SQLCreateTableParser extends SQLDDLParser {
accept(Token.RPAREN);
if (identifierEquals("INHERITS")) {
if (lexer.identifierEquals("INHERITS")) {
lexer.nextToken();
accept(Token.LPAREN);
SQLName inherits = this.exprParser.name();