Browse Source

fix: extract composite pk

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/8371/head
mertmit 7 months ago
parent
commit
fbf4395090
  1. 8
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -3254,10 +3254,12 @@ class BaseModelSqlv2 {
}
}
rowId = pkObj;
}
} else if (
!ai &&
!ag &&
(force || this.model.primaryKeys?.length > 1 || this.isSnowflake)
) {
// handle if primary key is not ai or ag
if (!ai && !ag) {
const pkObj = {};
for (const pk of this.model.primaryKeys) {
const key = pk.title;

Loading…
Cancel
Save