Skip to content

Commit

Permalink
chore: use aliases in pg fixtures table for merge statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmustin committed Dec 26, 2024
1 parent 579c5cc commit d902a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrumentation/pg/test/fixtures/sql_table_name.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
},
{
"name": "merge",
"sql": "MERGE into test_table using other_table on other_table.id = test_table.id WHEN matched then update set x = test_table.x + 1 when not matched then insert (id,x,status) values (other_table.id,other_table.x,other_table.status)"
"sql": "MERGE INTO test_table AS t USING other_table AS o ON (o.id = t.id) WHEN MATCHED THEN UPDATE SET x = t.x + 1 WHEN NOT MATCHED THEN INSERT (id, x, status) VALUES (o.id, o.x, o.status)"
}
]

0 comments on commit d902a11

Please sign in to comment.