diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-10-07 17:29:51 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-10-07 17:29:51 +0400 |
commit | 98a8642fe827fd9ac16bdfaf556599fa509d4180 (patch) | |
tree | 4215cf494f23de959522090ee386e125ba359308 /sql/sql_parse.cc | |
parent | 69393db3d15b5eac143ab6068037f938b3003ce1 (diff) | |
download | mariadb-git-98a8642fe827fd9ac16bdfaf556599fa509d4180.tar.gz |
MDEV-3798: EXPLAIN UPDATE/DELETE
- Add support for EXPLAIN INSERT.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 808c2cdb421..3139cf4404f 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3245,14 +3245,7 @@ end_with_restore_list: } if (!res && explain) - { - select_result *result= new select_send(); - LEX *lex= thd->lex; - if (thd->send_explain_fields(result) || - lex->explain->print_explain(result, lex->describe) || - result->send_eof()) - res= 1; - } + res= thd->lex->explain->send_explain(thd); /* revert changes for SP */ MYSQL_INSERT_SELECT_DONE(res, (ulong) thd->get_row_count_func()); @@ -3341,14 +3334,7 @@ end_with_restore_list: else { if (explain) - { - select_result *result= new select_send(); - LEX *lex= thd->lex; - if (thd->send_explain_fields(result) || - lex->explain->print_explain(result, lex->describe) || - result->send_eof()) - res= 1; - } + res= thd->lex->explain->send_explain(thd); } delete result; } |