mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-01 21:09:10 -06:00
Fixed regressions from the last commit.
This commit is contained in:
parent
008bc6da28
commit
8c7417b735
@ -298,7 +298,7 @@ class DatabaseView(PGChildNodeView):
|
||||
connected = True
|
||||
can_drop = can_dis_conn = False
|
||||
else:
|
||||
conn = self.manager.connection(dbname, did=row['did'])
|
||||
conn = self.manager.connection(database=dbname, did=row['did'])
|
||||
connected = conn.connected()
|
||||
can_drop = can_dis_conn = True
|
||||
|
||||
|
@ -796,7 +796,7 @@ class TablespaceView(PGChildNodeView):
|
||||
# a new connection to run the query and fetch the dependents.
|
||||
is_connected = True
|
||||
try:
|
||||
temp_conn = manager.connection(db_row['datname'])
|
||||
temp_conn = manager.connection(database=db_row['datname'])
|
||||
is_connected = temp_conn.connected()
|
||||
if not is_connected:
|
||||
temp_conn.connect()
|
||||
|
@ -365,7 +365,8 @@ WHERE db.oid = {0}""".format(did))
|
||||
else:
|
||||
conn = self.connections[conn_info['conn_id']] = Connection(
|
||||
self, conn_info['conn_id'], conn_info['database'],
|
||||
conn_info['auto_reconnect'], conn_info['async_'],
|
||||
auto_reconnect=conn_info['auto_reconnect'],
|
||||
async_=conn_info['async_'],
|
||||
use_binary_placeholder=conn_info[
|
||||
'use_binary_placeholder'],
|
||||
array_to_string=conn_info['array_to_string']
|
||||
|
Loading…
Reference in New Issue
Block a user