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:
@ -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;
|
||||
|
Reference in New Issue
Block a user