1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-6388: ANALYZE $stmt output in the slow query log

Make log_slow_verbosity=explain actually print ANALYZE (that
is, EXPLAIN otuput with two extra columns).
This commit is contained in:
Sergei Petrunia
2014-10-17 22:47:06 +04:00
parent d3bdc142b4
commit 47ced65566
6 changed files with 19 additions and 16 deletions

View File

@ -5618,7 +5618,7 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
*/
if (!(result= new select_send()))
return 1; /* purecov: inspected */
thd->send_explain_fields(result);
thd->send_explain_fields(result, lex->describe, lex->analyze_stmt);
/*
This will call optimize() for all parts of query. The query plan is