mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-26 06:30:06 -05:00
Ensure that the dependencies tab shows correct information for Synonyms. Fixes #5422
This commit is contained in:
1 parent
9bdf900b25
commit
5656f756e6
3 files changed
+23
-6
No files matched your search
@@ -712,9 +712,7 @@ class SynonymView(PGChildNodeView, SchemaDiffObjectCompare):
|
||||
scid: Schema ID
|
||||
syid: Synonym ID
|
||||
"""
|
||||
dependents_result = self.get_dependents(
|
||||
self.conn, syid, where="WHERE dep.objid=0::oid"
|
||||
)
|
||||
dependents_result = self.get_dependents(self.conn, syid)
|
||||
|
||||
return ajax_response(
|
||||
response=dependents_result,
|
||||
@@ -734,9 +732,7 @@ class SynonymView(PGChildNodeView, SchemaDiffObjectCompare):
|
||||
scid: Schema ID
|
||||
syid: Synonym ID
|
||||
"""
|
||||
dependencies_result = self.get_dependencies(
|
||||
self.conn, syid, where="WHERE dep.objid=0::oid"
|
||||
)
|
||||
dependencies_result = self.get_dependencies(self.conn, syid)
|
||||
|
||||
return ajax_response(
|
||||
response=dependencies_result,
|
||||
|
||||
Reference in new issue
Block a user