diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2015-04-08 10:13:36 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2015-04-09 14:21:02 +0200 |
commit | 697194461ad2031420bc1aaf8a03432dbf2acd66 (patch) | |
tree | a05b8dd781ed7b3b2aa55222947e34b41825b4d1 /sql/sql_update.cc | |
parent | abba4184e68f2ae652f1be19b04f32efb2cb354a (diff) | |
download | mariadb-git-697194461ad2031420bc1aaf8a03432dbf2acd66.tar.gz |
MDEV-7856: EXPLAIN FORMAT=JSON should show partitions
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 20a9a1fa915..ef4db308f3d 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -517,7 +517,7 @@ int mysql_update(THD *thd, */ if (thd->lex->describe) goto produce_explain_and_leave; - explain= query_plan.save_explain_update_data(thd->mem_root, thd); + explain= query_plan.save_explain_update_data(query_plan.mem_root, thd); ANALYZE_START_TRACKING(&explain->command_tracker); @@ -1046,7 +1046,7 @@ produce_explain_and_leave: We come here for various "degenerate" query plans: impossible WHERE, no-partitions-used, impossible-range, etc. */ - query_plan.save_explain_update_data(thd->mem_root, thd); + query_plan.save_explain_update_data(query_plan.mem_root, thd); emit_explain_and_leave: int err2= thd->lex->explain->send_explain(thd); |