Browse Source

Merge pull request #5421 from nocodb/fix/5420-linked-formula

fix: formula LTAR column references
pull/5427/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
804cb274d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

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

@ -656,7 +656,7 @@ async function _formulaQueryBuilder(
} else if (pt.type === 'Identifier') {
const { builder } = await aliasToColumn?.[pt.name]?.();
if (typeof builder === 'function') {
return { builder: knex.raw(`??${colAlias}`, await builder(pt.fnName)) };
return { builder: knex.raw(`??${colAlias}`, builder(pt.fnName)) };
}
return { builder: knex.raw(`??${colAlias}`, [builder || pt.name]) };
} else if (pt.type === 'BinaryExpression') {

Loading…
Cancel
Save