Fixed an issue where pgadmin is unable to take the defined role. #6342

pull/6365/head
Khushboo Vashi 2023-06-05 12:37:33 +05:30 committed by GitHub
parent 1afcc5c835
commit 10077f13c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class Connection(BaseConnection):
role = manager.role role = manager.role
if is_set_role: if is_set_role:
_query = "SELECT usename from pg_user WHERE usename = '{0}'" \ _query = "SELECT rolname from pg_roles WHERE rolname = '{0}'" \
"".format(role) "".format(role)
_status, res = self.execute_scalar(_query) _status, res = self.execute_scalar(_query)