Skip to content

Commit

Permalink
tapdb: fix comments on ON CONFLICT
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Aug 4, 2023
1 parent bd500c9 commit 735cb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tapdb/sqlc/assets.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tapdb/sqlc/queries/assets.sql
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ INSERT INTO asset_group_sigs (
) VALUES (
$1, $2, $3
) ON CONFLICT (gen_asset_id)
-- This is a NOP, gen_asset_id is the unique field that caused the conflict.
DO UPDATE SET gen_asset_id = EXCLUDED.gen_asset_id
RETURNING sig_id;

Expand All @@ -173,7 +174,6 @@ INSERT INTO genesis_assets (
) VALUES (
$2, $3, (SELECT meta_id FROM target_meta_id), $4, $5, $6
) ON CONFLICT (asset_id)
-- This is a NOP, asset_tag is the unique field that caused the conflict.
-- This is a NOP, asset_id is the unique field that caused the conflict.
DO UPDATE SET asset_id = EXCLUDED.asset_id
RETURNING gen_asset_id;
Expand Down

0 comments on commit 735cb1d

Please sign in to comment.