mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the dependent tab throwing an error when selecting any login/group role. Fixes #6294
This commit is contained in:
parent
6ffb82fb6d
commit
0f62fecca2
@ -39,3 +39,4 @@ Bug fixes
|
||||
| `Issue #6279 <https://redmine.postgresql.org/issues/6279>`_ - Ensure that the venv activation scripts have the correct path in them on Linux.
|
||||
| `Issue #6281 <https://redmine.postgresql.org/issues/6281>`_ - Fixed an issue where schema diff showing wrong SQL when comparing triggers with different when clause.
|
||||
| `Issue #6286 <https://redmine.postgresql.org/issues/6286>`_ - Ensure that the template database should be visible while creating the database.
|
||||
| `Issue #6294 <https://redmine.postgresql.org/issues/6294>`_ - Fixed an issue where the dependent tab throwing an error when selecting any login/group role.
|
||||
|
@ -375,7 +375,7 @@ class DatabaseView(PGChildNodeView):
|
||||
if self.manager.db == db:
|
||||
connected = True
|
||||
else:
|
||||
conn = self.manager.connection(row['name'])
|
||||
conn = self.manager.connection(database=row['name'])
|
||||
connected = conn.connected()
|
||||
icon_css_class = "pg-icon-database"
|
||||
if not connected:
|
||||
|
@ -1106,7 +1106,7 @@ rolmembership:{
|
||||
# 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()
|
||||
|
Loading…
Reference in New Issue
Block a user