mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved parser performance.
This commit is contained in:
@@ -28,16 +28,16 @@ public class SQLDDLParser extends SQLStatementParser {
|
||||
}
|
||||
|
||||
protected SQLTableConstraint parseConstraint() {
|
||||
if (lexer.token() == Token.CONSTRAINT) {
|
||||
if (lexer.token == Token.CONSTRAINT) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.IDENTIFIER) {
|
||||
if (lexer.token == Token.IDENTIFIER) {
|
||||
this.exprParser.name();
|
||||
throw new ParserException("TODO. " + lexer.info());
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.PRIMARY) {
|
||||
if (lexer.token == Token.PRIMARY) {
|
||||
lexer.nextToken();
|
||||
accept(Token.KEY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user