Fix view data for views/mat views. Fixes #2993

This commit is contained in:
Khushboo Vashi 2018-01-10 09:32:42 +00:00 committed by Dave Page
parent aec86970f2
commit def2df9028

View File

@ -434,8 +434,10 @@ def start_view_data(trans_id):
sql = trans_obj.get_sql()
pk_names, primary_keys = trans_obj.get_primary_keys(default_conn)
# Fetch OIDs status
has_oids = trans_obj.has_oids(default_conn)
has_oids = False
if trans_obj.object_type == 'table':
# Fetch OIDs status
has_oids = trans_obj.has_oids(default_conn)
# Fetch the applied filter.
filter_applied = trans_obj.is_filter_applied()