improve sql parser for mysql

This commit is contained in:
wenshao
2013-08-15 13:43:20 +08:00
parent 0d9112777c
commit 10163f7867
2 changed files with 73 additions and 1 deletions
@@ -1421,7 +1421,9 @@ public class SQLExprParser extends SQLParser {
if (lexer.token == Token.UNIQUE) {
lexer.nextToken();
accept(Token.KEY);
if (lexer.token() == Token.KEY) {
lexer.nextToken();
}
column.getConstaints().add(new SQLColumnPrimaryKey());
return parseColumnRest(column);
}