mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Improve parse representation for MERGE
Separation of parser data structures from executor, as requested by Tom Lane. Further improvements possible. While there, implement error for multiple VALUES clauses via parser to allow line number of error, as requested by Andres Freund. Author: Pavan Deolasee Discussion: https://www.postgresql.org/message-id/CABOikdPpqjectFchg0FyTOpsGXyPoqwgC==OLKWuxgBOsrDDZw@mail.gmail.com
This commit is contained in:
@ -90,7 +90,9 @@ USING source AS s
|
||||
ON t.tid = s.sid
|
||||
WHEN NOT MATCHED THEN
|
||||
INSERT VALUES (1,1), (2,2);
|
||||
ERROR: Multiple VALUES clauses not allowed in MERGE INSERT statement
|
||||
ERROR: syntax error at or near ","
|
||||
LINE 5: INSERT VALUES (1,1), (2,2);
|
||||
^
|
||||
;
|
||||
-- SELECT query for INSERT
|
||||
MERGE INTO target t
|
||||
|
Reference in New Issue
Block a user