From 2cba9e0cdccfac6f93a54e2ba12eb9926cfaa0a1 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Tue, 12 Nov 2013 17:13:11 +0400 Subject: [PATCH] MDEV-407: Print EXPLAIN [ANALYZE] in the slow query log - Address input from the mail list: change how EXPLAIN is formatted in the slow query log. --- sql/sql_show.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 5036a063a44..b61bfe2aa57 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2447,10 +2447,10 @@ void select_result_text_buffer::save_to(String *res) { List_iterator it(rows); char **row; - res->append("## \n"); + res->append("#\n"); while ((row= it++)) { - res->append("## "); + res->append("# explain: "); for (int i=0; i < n_columns; i++) { if (i) @@ -2459,7 +2459,7 @@ void select_result_text_buffer::save_to(String *res) } res->append("\n"); } - res->append("## \n"); + res->append("#\n"); }