1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MWL#182: Explain running statements

- Code cleanup
This commit is contained in:
Sergey Petrunya
2012-04-26 06:40:36 +05:30
parent 8c4fc9ba75
commit ca8aa3901c
8 changed files with 220 additions and 47 deletions

View File

@@ -3033,7 +3033,8 @@ void Show_explain_request::get_explain_data(void *arg)
req->target_thd->set_n_backup_active_arena((Query_arena*)req->request_thd,
&backup_arena);
req->target_thd->lex->unit.print_explain(req->explain_buf);
if (req->target_thd->lex->unit.print_explain(req->explain_buf))
req->failed_to_produce= TRUE;
req->target_thd->restore_active_arena((Query_arena*)req->request_thd,
&backup_arena);