Ensure that the dependencies tab shows correct information for Synonyms. Fixes #5422

This commit is contained in:
Khushboo Vashi authored and Akshay Joshi committed 2020-05-04 12:23:18 +05:30
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,