Browse Source

fix: Pass aliasToColumn argument

re #465

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/473/head
Pranav C 3 years ago
parent
commit
66e84c1287
  1. 3
      packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSql.ts

3
packages/nocodb/src/lib/dataMapper/lib/sql/BaseModelSql.ts

@ -1865,10 +1865,11 @@ class BaseModelSql extends BaseModel {
}
}
// todo: optimize
protected get selectFormulas() {
return (this.virtualColumns || [])?.reduce((arr, v) => {
if (v.formula?.value && !v.formula?.error?.length) {
arr.push(formulaQueryBuilder(v.formula?.tree, v._cn, this.dbDriver))
arr.push(formulaQueryBuilder(v.formula?.tree, v._cn, this.dbDriver, this.aliasToColumn))
}
return arr;
}, [])

Loading…
Cancel
Save