bug fixed for pg sql parser 'with update', for issue #1727

This commit is contained in:
wenshao
2017-05-11 06:44:39 +08:00
parent 965ba2f0a1
commit 6c8169b1fb
2 changed files with 80 additions and 0 deletions
@@ -322,6 +322,12 @@ public class PGSQLStatementParser extends SQLStatementParser {
stmt.setWith(with);
return stmt;
}
if (lexer.token() == Token.UPDATE) {
PGUpdateStatement stmt = (PGUpdateStatement) this.parseUpdateStatement();
stmt.setWith(with);
return stmt;
}
throw new ParserException("TODO");
}