Browse Source

fix: take first returned array for sqlite and mysql

pull/2515/head
Wing-Kam Wong 3 years ago
parent
commit
5717f4cea3
  1. 5
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

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

@ -610,7 +610,10 @@ class BaseModelSqlv2 {
!this.isSqlite
);
const children = await this.extractRawQueryAndExec(finalQb);
let children = await this.extractRawQueryAndExec(finalQb);
if (this.isSqlite || this.isMySQL) {
children = children[0];
}
const proto = await (
await Model.getBaseModelSQL({
id: rtnId,

Loading…
Cancel
Save