Browse Source

fix: avoid querying null seq

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7218/head
mertmit 9 months ago committed by Ramesh Mane
parent
commit
c09a2a550a
  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