Skip to content

Commit

Permalink
Change to a more specific error code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Kilkelly committed Jul 3, 2015
1 parent b84c21c commit 7a1be77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql/document_writes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ DECLARE
BEGIN
SELECT bq_insert(i_coll, i_jdoc) INTO o_id;
RETURN o_id;
EXCEPTION WHEN others THEN
EXCEPTION WHEN unique_violation THEN
EXECUTE format('
UPDATE %I SET bq_jdoc = %s::jsonb WHERE _id = %s returning _id',
i_coll,
Expand Down

0 comments on commit 7a1be77

Please sign in to comment.