mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 13:23:58 +00:00
build fix
This commit is contained in:
@@ -101,7 +101,7 @@ class Dumper extends SqlDumper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectScopeIdentity(table) {
|
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);
|
this.put("^SELECT currval(pg_get_serial_sequence('%f','%s'))", table, column ? column.columnName : null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user