1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-6393: ANALYZE SELECT crashes ... Don't try printing EXPLAIN if we had an error.

This commit is contained in:
Sergei Petrunia
2014-06-26 15:55:25 +04:00
parent b7d10e5687
commit 12d6f89b07
3 changed files with 45 additions and 1 deletions

View File

@ -5282,7 +5282,8 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
return 1;
delete thd->protocol;
thd->protocol= save_protocol;
thd->lex->explain->send_explain(thd);
if (!res)
thd->lex->explain->send_explain(thd);
if (result != lex->result)
delete result;