Browse Source

fix: add missing ( ) for precedence

pull/2132/head
Wing-Kam Wong 3 years ago
parent
commit
7ca076b81a
  1. 1
      packages/nocodb/src/lib/dataMapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

1
packages/nocodb/src/lib/dataMapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

@ -69,6 +69,7 @@ export default async function formulaQueryBuilderv2(
model, model,
{ ...aliasToColumn, [col.id]: null } { ...aliasToColumn, [col.id]: null }
); );
builder.sql = '(' + builder.sql + ')';
aliasToColumn[col.id] = builder; aliasToColumn[col.id] = builder;
} }
break; break;

Loading…
Cancel
Save