diff --git a/web/pgadmin/static/js/sqleditor/query_tool_actions.js b/web/pgadmin/static/js/sqleditor/query_tool_actions.js index a376f01..5757e36 100644 --- a/web/pgadmin/static/js/sqleditor/query_tool_actions.js +++ b/web/pgadmin/static/js/sqleditor/query_tool_actions.js @@ -36,6 +36,7 @@ let queryToolActions = { let buffers = this._buffers(); let timing = this._timing(); let explainAnalyzeQuery = `EXPLAIN (FORMAT JSON, ANALYZE ON, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS ${buffers}, TIMING ${timing}) `; + this._clearMessageTab(); sqlEditorController.execute(explainAnalyzeQuery); }, @@ -44,6 +45,7 @@ let queryToolActions = { let verbose = this._verbose(); let explainQuery = `EXPLAIN (FORMAT JSON, ANALYZE OFF, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS OFF, TIMING OFF) `; + this._clearMessageTab(); sqlEditorController.execute(explainQuery); },