Fixed an issue when closing the materialized view data second tab; it raises the error that the 'MViewCommand' object has no attribute 'auto_commit'.

This commit is contained in:
Khushboo Vashi 2024-04-26 15:53:15 +05:30
parent 5949696ded
commit f88c89f3eb

View File

@ -1735,7 +1735,8 @@ def check_and_upgrade_to_qt(trans_id, connect):
if 'gridData' in session and str(trans_id) in session['gridData']:
data = pickle.loads(session['gridData'][str(trans_id)]['command_obj'])
if data.object_type == 'table' or data.object_type == 'view':
if data.object_type == 'table' or data.object_type == 'view' or\
data.object_type == 'mview':
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(
data.sid)
default_conn = manager.connection(conn_id=data.conn_id,