improve sql parser

This commit is contained in:
wenshao
2013-04-18 11:37:11 +08:00
parent a2bb07e3d4
commit 9c538e9582
4 changed files with 113 additions and 1 deletions
@@ -531,6 +531,13 @@ public class MySqlExprParser extends SQLExprParser {
if (identifierEquals("PARTITION")) {
throw new ParserException("syntax error " + lexer.token() + " " + lexer.stringVal());
}
if (identifierEquals("COMMENT")) {
lexer.nextToken();
column.setComment(lexer.stringVal());
accept(Token.LITERAL_CHARS);
}
super.parseColumnRest(column);
return column;