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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user