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:
@@ -1840,6 +1840,10 @@ public class SQLStatementParser extends SQLParser {
|
||||
SQLCreateProcedureStatement stmt = parseCreateProcedure();
|
||||
stmt.setCreate(true);
|
||||
return stmt;
|
||||
} else if (token == Token.FUNCTION) {
|
||||
lexer.reset(markBp, markChar, Token.CREATE);
|
||||
SQLStatement stmt = this.parseCreateFunction();
|
||||
return stmt;
|
||||
} else if (identifierEquals("BITMAP")) {
|
||||
lexer.reset(markBp, markChar, Token.CREATE);
|
||||
return parseCreateIndex(true);
|
||||
@@ -1851,6 +1855,10 @@ public class SQLStatementParser extends SQLParser {
|
||||
throw new ParserException("TODO " + lexer.token());
|
||||
}
|
||||
|
||||
public SQLCreateFunctionStatement parseCreateFunction() {
|
||||
throw new ParserException("TODO " + lexer.token());
|
||||
}
|
||||
|
||||
public SQLStatement parseCreateMaterializedView() {
|
||||
accept(Token.CREATE);
|
||||
acceptIdentifier("MATERIALIZED");
|
||||
|
||||
Reference in New Issue
Block a user