mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser
This commit is contained in:
+1
-5
@@ -140,11 +140,7 @@ public class MySqlCreateTableParser extends SQLCreateTableParser {
|
||||
fk.setParent(stmt);
|
||||
stmt.getTableElementList().add(fk);
|
||||
} else if (lexer.token() == Token.CHECK) {
|
||||
lexer.nextToken();
|
||||
SQLCheck check = new SQLCheck();
|
||||
accept(Token.LPAREN);
|
||||
check.setExpr(this.exprParser.expr());
|
||||
accept(Token.RPAREN);
|
||||
SQLCheck check = this.exprParser.parseCheck();
|
||||
stmt.getTableElementList().add(check);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user