mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use schema qualification while accessing the catalog objects.
refs #3976
This commit is contained in:
committed by
Akshay Joshi
parent
d6ee715d83
commit
9d8360641f
@@ -526,7 +526,7 @@ SELECT
|
||||
has_database_privilege(db.oid, 'CREATE') as cancreate, datlastsysoid,
|
||||
datistemplate
|
||||
FROM
|
||||
pg_database db
|
||||
pg_catalog.pg_database db
|
||||
WHERE db.datname = current_database()""")
|
||||
|
||||
if status is None:
|
||||
|
||||
@@ -211,11 +211,11 @@ class ServerManager(object):
|
||||
status, res = conn.execute_dict("""
|
||||
SELECT
|
||||
db.oid as did, db.datname, db.datallowconn,
|
||||
pg_encoding_to_char(db.encoding) AS serverencoding,
|
||||
has_database_privilege(db.oid, 'CREATE') as cancreate, datlastsysoid,
|
||||
datistemplate
|
||||
pg_catalog.pg_encoding_to_char(db.encoding) AS serverencoding,
|
||||
pg_catalog.has_database_privilege(db.oid, 'CREATE') as cancreate,
|
||||
datlastsysoid, datistemplate
|
||||
FROM
|
||||
pg_database db
|
||||
pg_catalog.pg_database db
|
||||
WHERE db.oid = {0}""".format(did))
|
||||
|
||||
if status and len(res['rows']) > 0:
|
||||
|
||||
Reference in New Issue
Block a user