mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 10:23:57 +00:00
pg fix
This commit is contained in:
@@ -101,11 +101,8 @@ class Dumper extends SqlDumper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectScopeIdentity(table) {
|
selectScopeIdentity(table) {
|
||||||
this.put(
|
const column = table.columns?.find(x => x.autoIncrement);
|
||||||
"^SELECT currval(pg_get_serial_sequence('%f','%s'))",
|
this.put("^SELECT currval(pg_get_serial_sequence('%f','%s'))", table, column ? column.columnName : null);
|
||||||
table,
|
|
||||||
table.columns?.find(x => x.autoIncrement)?.[0]?.columnName
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user