-on conflict example

This commit is contained in:
Christian Grothoff 2022-02-24 10:16:10 +01:00
parent 5e5004020e
commit 10b9023575
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1148,7 +1148,7 @@ INSERT INTO wire_targets
VALUES VALUES
(in_h_payto (in_h_payto
,in_receiver_wire_account) ,in_receiver_wire_account)
ON CONFLICT (h_payto) DO NOTHING ON CONFLICT DO NOTHING -- for CONFLICT ON (h_payto)
RETURNING wire_target_serial_id INTO wtsi; RETURNING wire_target_serial_id INTO wtsi;
IF NOT FOUND IF NOT FOUND