We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9daab4d commit 67ca63dCopy full SHA for 67ca63d
server/postgres/src/storage.ts
@@ -1267,7 +1267,8 @@ abstract class PostgresAdapterBase implements DbAdapter {
1267
switch (type) {
1268
case 'common':
1269
if (Array.isArray(val) && val.includes(null)) {
1270
- res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL`)
+ const vv = vars.addArray(val, inferType(val))
1271
+ res.push(`(${tkey} = ANY(${vv}) OR ${tkey} IS NULL)`)
1272
} else {
1273
if (val.length > 0) {
1274
res.push(`${tkey} = ANY(${vars.addArray(val, inferType(val))})`)
0 commit comments