From c15d81426812fd6af0ed823480321bac77d81ec4 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Wed, 3 Jan 2018 15:19:56 +0000 Subject: [PATCH] Clear the messages tab when running EXPLAIN/EXPLAIN ANALYZE. Fixes #2974 --- web/pgadmin/static/js/sqleditor/query_tool_actions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/pgadmin/static/js/sqleditor/query_tool_actions.js b/web/pgadmin/static/js/sqleditor/query_tool_actions.js index a376f0172..5757e360f 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); },