diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-11-12 17:13:11 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-11-12 17:13:11 +0400 |
commit | 2cba9e0cdccfac6f93a54e2ba12eb9926cfaa0a1 (patch) | |
tree | 00fcea7717ee573b5973f308582e07dab9d7a866 | |
parent | e0d9a256902738ad3064b0bb7896e519357345ad (diff) | |
download | mariadb-git-2cba9e0cdccfac6f93a54e2ba12eb9926cfaa0a1.tar.gz |
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.
-rw-r--r-- | sql/sql_show.cc | 6 |
1 files 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<char*> it(rows); char **row; - res->append("## <explain>\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("## </explain>\n"); + res->append("#\n"); } |