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

This commit is contained in:
Khushboo Vashi 2020-05-04 12:23:18 +05:30 committed by Akshay Joshi
parent 9bdf900b25
commit 5656f756e6
3 changed files with 23 additions and 6 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_4_22
release_notes_4_21
release_notes_4_20
release_notes_4_19

View File

@ -0,0 +1,20 @@
************
Version 4.22
************
Release date: 2020-05-28
This release contains a number of bug fixes and new features since the release of pgAdmin4 4.21.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #5422 <https://redmine.postgresql.org/issues/5422>`_ - Ensure that the dependencies tab shows correct information for Synonyms.

View File

@ -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,