mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fixed an issue where querying a foreign table gives the error 'ForeignTableCommand' object has no attribute 'auto_commit'. #7384
This commit is contained in:
parent
8b68ea6465
commit
f4cba74bf6
@ -31,8 +31,8 @@ Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #5099 <https://github.com/pgadmin-org/pgadmin4/issues/5099>`_ - Fixed an issue where Ctrl/Cmd + A was not selecting all data in query tool data grid.
|
||||
| `Issue #7384 <https://github.com/pgadmin-org/pgadmin4/issues/7384>`_ - Fixed an issue where querying a foreign table gives the error 'ForeignTableCommand' object has no attribute 'auto_commit'.
|
||||
| `Issue #7865 <https://github.com/pgadmin-org/pgadmin4/issues/7865>`_ - Fixed an issue related to the query tool update connection after the server disconnected from the object explorer.
|
||||
| `Issue #8010 <https://github.com/pgadmin-org/pgadmin4/issues/8010>`_ - Fixed an issue where query tool should show results and messages only from the last executed query.
|
||||
| `Issue #8065 <https://github.com/pgadmin-org/pgadmin4/issues/8065>`_ - Ensure the crypt key is retrieved correctly on backend server restart.
|
||||
| `Issue #8127 <https://github.com/pgadmin-org/pgadmin4/issues/8127>`_ - Fixed an issue where query tool should not prompt for unsaved changes when there are no changes.
|
||||
|
||||
|
@ -1759,8 +1759,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' or data.object_type == 'view' or\
|
||||
data.object_type == 'mview':
|
||||
if data.object_type in ['table', 'foreign_table', 'view', '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