mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
QFIX: PG query
Some checks failed
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / test (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Some checks failed
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / test (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
9daab4d749
commit
67ca63dace
@ -1267,7 +1267,8 @@ abstract class PostgresAdapterBase implements DbAdapter {
|
||||
switch (type) {
|
||||
case 'common':
|
||||
if (Array.isArray(val) && val.includes(null)) {
|
||||
res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL`)
|
||||
const vv = vars.addArray(val, inferType(val))
|
||||
res.push(`(${tkey} = ANY(${vv}) OR ${tkey} IS NULL)`)
|
||||
} else {
|
||||
if (val.length > 0) {
|
||||
res.push(`${tkey} = ANY(${vars.addArray(val, inferType(val))})`)
|
||||
|
Loading…
Reference in New Issue
Block a user