Skip to content

Commit 8209498

Browse files
committed
fix: resolve operator ambiguity in i3 foreign key check
Add explicit int2[] cast to key_cols parameter to resolve "operator is not unique" error when using the @> operator with pg_catalog schema qualification. Fixes #62
1 parent ac864a2 commit 8209498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/i3_non_indexed_fks.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ with fk_actions ( code, action ) as (
6363
join fk_cols_list using (fkoid)
6464
left join index_list on
6565
conrelid = indrelid
66-
and (indkey::int2[])[0:(array_length(key_cols,1) -1)] operator(pg_catalog.@>) key_cols
66+
and (indkey::int2[])[0:(array_length(key_cols,1) -1)] operator(pg_catalog.@>) key_cols::int2[]
6767

6868
), fk_perfect_match as (
6969
select fkoid

0 commit comments

Comments
 (0)