mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fixed an issue when closing the view data second tab; it raises the error that the 'ViewCommand' object has no attribute 'auto_commit'. #7384
This commit is contained in:
parent
3e0ade5a59
commit
84c024f6fa
@ -36,4 +36,5 @@ Bug fixes
|
||||
| `Issue #7275 <https://github.com/pgadmin-org/pgadmin4/issues/7275>`_ - Fixed an issue where debugger was not scrolling automatically on stepping.
|
||||
| `Issue #7282 <https://github.com/pgadmin-org/pgadmin4/issues/7282>`_ - Fixed an XSS vulnerability in the /settings/store endpoint.
|
||||
| `Issue #7294 <https://github.com/pgadmin-org/pgadmin4/issues/7294>`_ - Fixed an issue where double dollar quoted code is treated as string in syntax highlighter.
|
||||
| `Issue #7317 <https://github.com/pgadmin-org/pgadmin4/issues/7317>`_ - Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences.
|
||||
| `Issue #7317 <https://github.com/pgadmin-org/pgadmin4/issues/7317>`_ - Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences.
|
||||
| `Issue #7384 <https://github.com/pgadmin-org/pgadmin4/issues/7384>`_ - Fixed an issue when closing the view data second tab; it raises the error that the 'ViewCommand' object has no attribute 'auto_commit'.
|
@ -690,7 +690,7 @@ def close_sqleditor_session(trans_id):
|
||||
manager.release(did=cmd_obj.did, conn_id=cmd_obj.conn_id)
|
||||
|
||||
# Close the auto complete connection
|
||||
if cmd_obj.conn_id_ac is not None:
|
||||
if hasattr(cmd_obj, 'conn_id_ac') and cmd_obj.conn_id_ac is not None:
|
||||
manager = get_driver(
|
||||
PG_DEFAULT_DRIVER).connection_manager(cmd_obj.sid)
|
||||
if manager is not None:
|
||||
@ -1735,7 +1735,7 @@ 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':
|
||||
if data.object_type == 'table' or data.object_type == 'view':
|
||||
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