Browse Source

fix(nocodb): missing result for sqlite3

pull/4644/head
Wing-Kam Wong 2 years ago
parent
commit
aa91fb2cca
  1. 5
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

5
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

@ -721,7 +721,10 @@ export default async function formulaQueryBuilderv2(
: pt.right.value === '' : pt.right.value === ''
: 0 : 0
}) ${colAlias}`; }) ${colAlias}`;
} else if (knex.clientType() === 'pg') { } else if (
knex.clientType() === 'pg' ||
knex.clientType() === 'sqlite3'
) {
sql = `COALESCE(${left} ${pt.operator} ${right}, ${ sql = `COALESCE(${left} ${pt.operator} ${right}, ${
pt.operator === '=' pt.operator === '='
? pt.left.type === 'Literal' ? pt.left.type === 'Literal'

Loading…
Cancel
Save