mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved update statement parser for mysql
This commit is contained in:
@@ -2818,7 +2818,13 @@ public class SQLExprParser extends SQLParser {
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void parseHints(List hints) {
|
||||
if (lexer.token == Token.HINT) {
|
||||
hints.add(new SQLCommentHint(lexer.stringVal()));
|
||||
SQLCommentHint hint = new SQLCommentHint(lexer.stringVal());
|
||||
|
||||
if (lexer.commentCount > 0) {
|
||||
hint.addBeforeComment(lexer.comments);
|
||||
}
|
||||
|
||||
hints.add(hint);
|
||||
lexer.nextToken();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user