mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where a connection warning should be displayed when the user
clicks on explain or explain analyze and the database server is disconnected from the browser tree. Fixes #6376
This commit is contained in:
@@ -31,3 +31,4 @@ Bug fixes
|
|||||||
| `Issue #6344 <https://redmine.postgresql.org/issues/6344>`_ - Fixed cannot unpack non-iterable response object error when selecting any partition.
|
| `Issue #6344 <https://redmine.postgresql.org/issues/6344>`_ - Fixed cannot unpack non-iterable response object error when selecting any partition.
|
||||||
| `Issue #6356 <https://redmine.postgresql.org/issues/6356>`_ - Mark the Apache HTTPD config file as such in the web DEB and RPM packages.
|
| `Issue #6356 <https://redmine.postgresql.org/issues/6356>`_ - Mark the Apache HTTPD config file as such in the web DEB and RPM packages.
|
||||||
| `Issue #6375 <https://redmine.postgresql.org/issues/6375>`_ - Fixed an issue where users are unable to see data of the partitions using the View/Edit data option.
|
| `Issue #6375 <https://redmine.postgresql.org/issues/6375>`_ - Fixed an issue where users are unable to see data of the partitions using the View/Edit data option.
|
||||||
|
| `Issue #6376 <https://redmine.postgresql.org/issues/6376>`_ - Fixed an issue where a connection warning should be displayed on the user clicks on explain or explain analyze and the database server is disconnected from the browser tree.
|
||||||
|
@@ -16,8 +16,9 @@ from pgadmin.utils.compile_template_name import compile_template_name
|
|||||||
def apply_explain_plan_wrapper_if_needed(manager, sql):
|
def apply_explain_plan_wrapper_if_needed(manager, sql):
|
||||||
if 'explain_plan' in sql and sql['explain_plan']:
|
if 'explain_plan' in sql and sql['explain_plan']:
|
||||||
explain_plan = sql['explain_plan']
|
explain_plan = sql['explain_plan']
|
||||||
ver = manager.version
|
ver = manager.version if manager.version is not None else 0
|
||||||
server_type = manager.server_type
|
server_type = \
|
||||||
|
manager.server_type if manager.server_type is not None else 'pg'
|
||||||
template_path = compile_template_name(
|
template_path = compile_template_name(
|
||||||
'sqleditor/sql',
|
'sqleditor/sql',
|
||||||
'explain_plan.sql',
|
'explain_plan.sql',
|
||||||
|
Reference in New Issue
Block a user