improved mysql parser, update support cte fix #4289

This commit is contained in:
高铁
2021-06-07 01:23:02 +08:00
parent a6ff730eaf
commit 53f1dc56df
5 changed files with 49 additions and 0 deletions
@@ -5257,6 +5257,10 @@ public class SQLStatementParser extends SQLParser {
HiveMultiInsertStatement insert = (HiveMultiInsertStatement) this.parseInsert();
insert.setWith(with);
return insert;
} else if (lexer.token == UPDATE) {
SQLUpdateStatement update = this.parseUpdateStatement();
update.setWith(with);
return update;
}
throw new ParserException("TODO. " + lexer.info());