mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fixed an issue where dependencies and dependents were not showing if a composite type is used as an attribute in another composite type. #7027
This commit is contained in:
parent
d3ede3151a
commit
4faf2a3c6d
@ -1527,8 +1527,11 @@ class TypeView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
|
||||
scid: Schema ID
|
||||
tid: Type ID
|
||||
"""
|
||||
# For composite type typrelid is required to fetch dependencies.
|
||||
type_where = "WHERE (dep.objid={0}::oid OR dep.objid=(select typrelid \
|
||||
from pg_type where oid = {0}::oid))".format(tid)
|
||||
dependencies_result = self.get_dependencies(
|
||||
self.conn, tid
|
||||
self.conn, tid, where=type_where
|
||||
)
|
||||
|
||||
return ajax_response(
|
||||
|
@ -580,6 +580,7 @@ class PGChildNodeView(NodeView):
|
||||
'Pf': 'function', 'Pt': 'trigger_function', 'Pp': 'procedure',
|
||||
'Rl': 'rule', 'Rs': 'row_security_policy', 'Sy': 'synonym',
|
||||
'Ty': 'type', 'Tr': 'trigger', 'Tc': 'compound_trigger',
|
||||
'c': 'type',
|
||||
# None specified special handling for this type
|
||||
'A': None
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user