diff options
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/procedures.sql | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/exchangedb/procedures.sql b/src/exchangedb/procedures.sql index ff3ddb3f7..a869d4739 100644 --- a/src/exchangedb/procedures.sql +++ b/src/exchangedb/procedures.sql @@ -1557,7 +1557,14 @@ INSERT INTO purse_decision VALUES (in_purse_pub ,in_now - ,FALSE); + ,FALSE) +ON CONFLICT DO NOTHING; + +IF NOT FOUND +THEN + out_conflict=TRUE; + RETURN; +END IF; IF (my_in_reserve_quota) THEN |