Use schema qualification while accessing the catalog objects. Fixes #3976

This commit is contained in:
Rahul Shirsat
2021-03-09 13:18:45 +05:30
committed by Akshay Joshi
parent 8cf7c41ad9
commit a2be30d257
738 changed files with 5027 additions and 5022 deletions

View File

@@ -609,8 +609,8 @@ def fetch_pg_types(columns_info, trans_obj):
if oids:
status, res = default_conn.execute_dict(
"SELECT oid, format_type(oid, NULL) AS typname FROM pg_type "
"WHERE oid IN %s ORDER BY oid;", [tuple(oids)]
"SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM "
"pg_catalog.pg_type WHERE oid IN %s ORDER BY oid;", [tuple(oids)]
)
if not status: