Fix an error that could be seen when click on any system column of a table. Fixes #4577

This commit is contained in:
Aditya Toshniwal 2019-08-26 14:36:07 +05:30 committed by Akshay Joshi
parent f8f7d5ac6f
commit 53ab4d7e8d
2 changed files with 8 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Bug fixes
| `Issue #2706 <https://redmine.postgresql.org/issues/2706>`_ - Added ProjectSet icon for explain module.
| `Issue #2828 <https://redmine.postgresql.org/issues/2828>`_ - Added Gather Merge, Named Tuple Store Scan and Table Function Scan icon for explain module.
| `Issue #4419 <https://redmine.postgresql.org/issues/4419>`_ - Fix a debugger error when using Python 2.7.
| `Issue #4577 <https://redmine.postgresql.org/issues/4577>`_ - Fix an error that could be seen when click on any system column of a table.
| `Issue #4584 <https://redmine.postgresql.org/issues/4584>`_ - Unescape HTML entities in database names in the Query Tool title bar.
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
| `Issue #4644 <https://redmine.postgresql.org/issues/4644>`_ - Fix length and precision enable/disable issue when changing the data type for Domain node.

View File

@ -970,9 +970,15 @@ class ColumnsView(PGChildNodeView, DataTypeReader):
clid: Column ID
"""
# Specific condition for column which we need to append
where = "WHERE dep.objid={0}::OID AND dep.objsubid={1}".format(
tid, clid
)
# Specific condition for column which we need to append
dependencies_result = self.get_dependencies(
self.conn, clid
self.conn, clid, where
)
return ajax_response(