Fixed an issue where the dependent tab throwing an error when selecting any login/group role. Fixes #6294

This commit is contained in:
Akshay Joshi 2021-03-09 14:32:16 +05:30
parent 6ffb82fb6d
commit 0f62fecca2
3 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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:

View File

@ -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()