From 7be365ea9ce8cf7daa560d1162c767aadcc85675 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Tue, 15 Oct 2013 13:21:06 +0400 Subject: [PATCH] MDEV-3798: [SHOW] EXPLAIN UPDATE/DELETE - When showing EXPLAIN output in the slow query log, format it so that one could use grep or other tool to get the output. --- 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 7636b107e2d..72796cb096c 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2442,10 +2442,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("## "); for (int i=0; i < n_columns; i++) { if (i) @@ -2454,7 +2454,7 @@ void select_result_text_buffer::save_to(String *res) } res->append("\n"); } - res->append("#\n"); + res->append("## \n"); }