Skip to content

Commit f4cba74

Browse files
committed
Fixed an issue where querying a foreign table gives the error 'ForeignTableCommand' object has no attribute 'auto_commit'. #7384
1 parent 8b68ea6 commit f4cba74

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/en_US/release_notes_8_14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Bug fixes
3131
*********
3232

3333
| `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.
34+
| `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'.
3435
| `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.
3536
| `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.
3637
| `Issue #8065 <https://github.com/pgadmin-org/pgadmin4/issues/8065>`_ - Ensure the crypt key is retrieved correctly on backend server restart.
3738
| `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.
38-

web/pgadmin/tools/sqleditor/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,8 +1759,7 @@ def check_and_upgrade_to_qt(trans_id, connect):
17591759

17601760
if 'gridData' in session and str(trans_id) in session['gridData']:
17611761
data = pickle.loads(session['gridData'][str(trans_id)]['command_obj'])
1762-
if data.object_type == 'table' or data.object_type == 'view' or\
1763-
data.object_type == 'mview':
1762+
if data.object_type in ['table', 'foreign_table', 'view', 'mview']:
17641763
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(
17651764
data.sid)
17661765
default_conn = manager.connection(conn_id=data.conn_id,

0 commit comments

Comments
 (0)