Skip to content

Commit 67ca63d

Browse files
committed
QFIX: PG query
Signed-off-by: Andrey Sobolev <[email protected]>
1 parent 9daab4d commit 67ca63d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: server/postgres/src/storage.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,8 @@ abstract class PostgresAdapterBase implements DbAdapter {
12671267
switch (type) {
12681268
case 'common':
12691269
if (Array.isArray(val) && val.includes(null)) {
1270-
res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL`)
1270+
const vv = vars.addArray(val, inferType(val))
1271+
res.push(`(${tkey} = ANY(${vv}) OR ${tkey} IS NULL)`)
12711272
} else {
12721273
if (val.length > 0) {
12731274
res.push(`${tkey} = ANY(${vars.addArray(val, inferType(val))})`)

0 commit comments

Comments
 (0)