improved parser performance.

This commit is contained in:
wenshao
2017-08-26 22:53:51 +08:00
parent 76c441949f
commit a983b2685b
75 changed files with 2998 additions and 2053 deletions
@@ -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);