From d902a11338185ba1e0bd68859718d5ff94c9ba2f Mon Sep 17 00:00:00 2001 From: Eric Mustin Date: Thu, 26 Dec 2024 16:14:28 -0500 Subject: [PATCH] chore: use aliases in pg fixtures table for merge statement --- instrumentation/pg/test/fixtures/sql_table_name.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/pg/test/fixtures/sql_table_name.json b/instrumentation/pg/test/fixtures/sql_table_name.json index a9075edcf..852d1dcea 100644 --- a/instrumentation/pg/test/fixtures/sql_table_name.json +++ b/instrumentation/pg/test/fixtures/sql_table_name.json @@ -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)" } ]