Browse Source

fix: avoid treating value as identifier(column_name)

pull/7017/head
Pranav C 12 months ago
parent
commit
edfe0f245c
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

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

Loading…
Cancel
Save