Browse Source

fix: avoid querying null seq

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7216/head
mertmit 1 year ago
parent
commit
6948a043d1
  1. 2
      packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

2
packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

@ -88,7 +88,7 @@ export class ExportService {
`SELECT pg_get_serial_sequence('??', ?) as seq;`,
[baseModel.getTnPath(model.table_name), column.column_name],
);
if (seq.rows.length > 0) {
if (seq.rows.length > 0 && seq.rows[0].seq) {
const seqName = seq.rows[0].seq;
const res = await sqlClient.raw(

Loading…
Cancel
Save