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