Skip to content

Commit ee41c31

Browse files
committed
Make sure all SELECT INTOs use STRICT
1 parent 0d22564 commit ee41c31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

merge/merge--0.1.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ DECLARE
133133
key_cols text DEFAULT '';
134134
BEGIN
135135
SELECT string_agg(quote_ident(t.attname), ',')
136-
INTO key_cols
136+
INTO STRICT key_cols
137137
FROM
138138
pg_catalog.pg_attribute t
139139
JOIN pg_catalog.pg_constraint c
@@ -217,7 +217,7 @@ DECLARE
217217
BEGIN
218218
-- Determine whether the source table is "all key, no attributes"
219219
SELECT array_length(con.conkey, 1) = count(att.attnum)
220-
INTO all_keys
220+
INTO STRICT all_keys
221221
FROM
222222
pg_catalog.pg_attribute att
223223
JOIN pg_catalog.pg_constraint con
@@ -233,7 +233,7 @@ BEGIN
233233
RETURN _build_insert_keys(source_oid, dest_oid);
234234
ELSE
235235
SELECT string_agg(quote_ident(t.attname), ',')
236-
INTO key_cols
236+
INTO STRICT key_cols
237237
FROM
238238
pg_catalog.pg_attribute t
239239
JOIN pg_catalog.pg_constraint c

0 commit comments

Comments
 (0)