summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-06-17 11:59:38 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-06-17 11:59:38 +0400
commit03691a77718c781469b5675c6b03d6064255debb (patch)
tree8e8b24229e7334fa766b3feb8fd6e2b21cf095a6 /sql/sql_delete.cc
parent9718b9763deeaa41008aeca31c24548e556401cc (diff)
downloadmariadb-git-03691a77718c781469b5675c6b03d6064255debb.tar.gz
SHOW EXPLAIN UPDATE/DELETE
- Introduce "Query Plan Footprints" (abbrev. QPFs) QPF is a part of query plan that is 1. sufficient to produce EXPLAIN output, 2. can be used to produce EXPLAIN output even after its subquery/union was executed and deleted 3. is cheap to save so that we can always save query plans - This patch doesn't fully address #2, we make/save strings for a number of EXPLAIN's columns. This will be fixed.
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index df659871a64..390d9e3945a 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -169,7 +169,9 @@ int Update_plan::print_explain(select_result_sink *output, uint8 explain_flags,
extra_str.c_ptr());
*printed_anything= true;
-
+ /*
+ psergey-todo: handle all this through saving QPF.
+
for (SELECT_LEX_UNIT *unit= select_lex->first_inner_unit();
unit;
unit= unit->next_unit())
@@ -177,6 +179,7 @@ int Update_plan::print_explain(select_result_sink *output, uint8 explain_flags,
if (unit->print_explain(output, explain_flags, printed_anything))
return 1;
}
+ */
return 0;
}