From 5e207a6c16b82caa26f8e4fd24ab600354fcf26e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 12 Feb 2023 12:44:40 +0100 Subject: [PATCH] build fix --- plugins/dbgate-plugin-postgres/src/frontend/Dumper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js index 08e7421c..a3de4f4f 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js @@ -101,7 +101,7 @@ class Dumper extends SqlDumper { } selectScopeIdentity(table) { - const column = table.columns?.find(x => x.autoIncrement); + const column = table.columns && table.columns.find(x => x.autoIncrement); this.put("^SELECT currval(pg_get_serial_sequence('%f','%s'))", table, column ? column.columnName : null); } }