Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: reWriteBatchedInserts=true causes syntax error with ON CONFLICT (#…
…1082) INSERT into ... VALUES(...),(...),(...) ON CONFLICT (id) ... confused parser since it considered braces after on conflict to be a part of VALUES clause.
- Loading branch information
Showing
with
104 additions
and 7 deletions.
- +8 −1 pgjdbc/src/main/java/org/postgresql/core/Parser.java
- +19 −0 pgjdbc/src/test/java/org/postgresql/core/ParserTest.java
- +13 −0 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BaseTest4.java
- +7 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BatchedInsertReWriteEnabledTest.java
- +57 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpsertTest.java