improved update statement parser for mysql

This commit is contained in:
林夕
2017-12-18 15:47:05 +08:00
parent a68a56af0f
commit 405bdc885f
8 changed files with 89 additions and 7 deletions
@@ -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();
}
}