mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql parser, update support cte fix #4289
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user