Commit 97b7863
committed
fix: add explicit type cast to resolve operator ambiguity in i3
Add explicit `::int2[]` cast to `key_cols` parameter in the i3 foreign
key check query. This resolves "operator is not unique" errors that can
occur in certain PostgreSQL environments (such as Google CloudSQL).
The error occurs when PostgreSQL cannot determine which @> operator to
use between smallint[] operands. By explicitly casting both sides to
int2[], we eliminate any ambiguity.
While standard PostgreSQL installations (including those with intarray
extension) may not exhibit this error, the explicit cast is a best
practice that ensures consistent behavior across all environments.
Fixes #621 parent d9f648e commit 97b7863
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments