mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser
This commit is contained in:
@@ -202,6 +202,10 @@ public class SQLStatementParser extends SQLParser {
|
||||
SQLName tableName = this.exprParser.name();
|
||||
insertStatement.setTableName(tableName);
|
||||
|
||||
if (lexer.token() == Token.LITERAL_ALIAS) {
|
||||
insertStatement.setAlias(as());
|
||||
}
|
||||
|
||||
parseInsert0_hinits(insertStatement);
|
||||
|
||||
if (lexer.token() == Token.IDENTIFIER) {
|
||||
@@ -288,11 +292,17 @@ public class SQLStatementParser extends SQLParser {
|
||||
return createTableParser.parseCrateTable(false);
|
||||
} else if (token == Token.INDEX || token == Token.UNIQUE) {
|
||||
return parseCreateIndex(false);
|
||||
} else if (identifierEquals("SEQUENCE")) {
|
||||
return parseCreateSequence(false);
|
||||
}
|
||||
|
||||
throw new ParserException("TODO " + lexer.token());
|
||||
}
|
||||
|
||||
public SQLStatement parseCreateSequence(boolean acceptCreate) {
|
||||
throw new ParserException("TODO " + lexer.token());
|
||||
}
|
||||
|
||||
public SQLStatement parseCreateIndex(boolean acceptCreate) {
|
||||
throw new ParserException("TODO " + lexer.token());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user