mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
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:
parent
5949696ded
commit
f88c89f3eb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user