Browse Source

feat: add composite support in baseModel ee version

pull/7649/head
Pranav C 7 months ago
parent
commit
a8df9d25ca
  1. 5
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -2450,7 +2450,8 @@ class BaseModelSqlv2 {
if (!response) await this.execAndParse(query); if (!response) await this.execAndParse(query);
response = await this.readByPk( response = await this.readByPk(
this.extractCompositePK({ this.extractCompositePK({
rowId: insertObj[ag.column_name], rowId:
this.extractCompositePK({ rowId: insertObj[ag.column_name], insertObj, ag }),
insertObj, insertObj,
ag, ag,
}), }),
@ -2894,7 +2895,7 @@ class BaseModelSqlv2 {
} }
} }
private extractCompositePK({ protected extractCompositePK({
ai, ai,
ag, ag,
rowId, rowId,

Loading…
Cancel
Save