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

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