diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-06-20 15:15:24 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-06-20 15:15:24 +0400 |
commit | 0a560289aaa8c17e3f1930871088f43efce641e8 (patch) | |
tree | 9389be8c89ec07454bea13ea08ea2886e0fa0f74 /sql/sp_head.cc | |
parent | 6efa1d8c248e1068829af9b530b6c47747ac3310 (diff) | |
download | mariadb-git-0a560289aaa8c17e3f1930871088f43efce641e8.tar.gz |
[SHOW] EXPLAIN UPDATE/DELETE, code re-structuring
- Introduce back QueryPlan/QueryPlanFootprint separation for
single-table UPDATEs/DELETEs
- Create an empty QueryPlanFootprint for all kinds of queries
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index f0a87673857..3cc3a3893bb 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -3006,6 +3006,9 @@ sp_lex_keeper::reset_lex_and_exec_core(THD *thd, uint *nextp, else if (! thd->in_sub_stmt) thd->mdl_context.release_statement_locks(); } + + delete_qpf_query(m_lex->query_plan_footprint); + m_lex->query_plan_footprint= NULL; if (m_lex->query_tables_own_last) { |