Browse Source

fix: use alias to extract id value

pull/7017/head
Pranav C 1 year ago
parent
commit
5f74294150
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts

4
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -4679,7 +4679,9 @@ class BaseModelSqlv2 {
`${parentTable.table_name}.${parentColumn.column_name}`,
).andOn(
`${vTable.table_name}.${vChildCol.column_name}`,
this.dbDriver.raw('?', [row[childColumn.column_name]]),
this.dbDriver.raw('?', [
row[childColumn.title] ?? row[childColumn.column_name],
]),
);
});
// .where(_wherePk(parentTable.primaryKeys, childId))

Loading…
Cancel
Save