Browse Source

fix(nc-gui): use column.column_name instead in groupedQb union all where clause

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
7e711a6ff7
  1. 4
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

4
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -2480,9 +2480,9 @@ class BaseModelSqlv2 {
[...groupingValues].map((r) => {
const query = qb.clone();
if (r === null) {
query.whereNull(column.title);
query.whereNull(column.column_name);
} else {
query.where(column.title, r);
query.where(column.column_name, r);
}
return this.isSqlite ? this.dbDriver.select().from(query) : query;

Loading…
Cancel
Save