summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-10-05 09:58:22 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-10-05 09:58:22 +0400
commitfedf769f0b2001f8294c2b44dbcaca1e562f82a9 (patch)
treea1c998b5c4ea47636023f142f86b607cd5521717 /sql/sql_select.h
parentf5fba6564b447369575bc129aac89d347368957e (diff)
downloadmariadb-git-fedf769f0b2001f8294c2b44dbcaca1e562f82a9.tar.gz
MDEV-3798: EXPLAIN UPDATE/DELETE
- Address review feedback: rename nearly any name used by the new EXPLAIN code.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index b3177333d12..fc2ffb3c175 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -258,7 +258,7 @@ typedef struct st_join_table {
JOIN_TAB_RANGE *bush_children;
/* Special content for EXPLAIN 'Extra' column or NULL if none */
- enum Extra_tag info;
+ enum explain_extra_tag info;
/*
Bitmap of TAB_INFO_* bits that encodes special line for EXPLAIN 'Extra'
@@ -1336,7 +1336,7 @@ public:
emb_sjm_nest= NULL;
sjm_lookup_tables= 0;
- exec_qpf_saved= false;
+ exec_saved_explain= false;
/*
The following is needed because JOIN::cleanup(true) may be called for
joins for which JOIN::optimize was aborted with an error before a proper
@@ -1344,7 +1344,13 @@ public:
*/
table_access_tabs= NULL;
}
- bool exec_qpf_saved;
+
+ /*
+ TRUE <=> There was a JOIN::exec() call, which saved this JOIN's EXPLAIN.
+ The idea is that we also save at the end of JOIN::optimize(), but that
+ might not be the final plan.
+ */
+ bool exec_saved_explain;
int prepare(Item ***rref_pointer_array, TABLE_LIST *tables, uint wind_num,
COND *conds, uint og_num, ORDER *order, ORDER *group,
@@ -1470,8 +1476,8 @@ public:
{
return (unit->item && unit->item->is_in_predicate());
}
- int save_qpf(QPF_query *output, bool need_tmp_table, bool need_order,
- bool distinct, const char *message);
+ int save_explain_data(Explain_query *output, bool need_tmp_table,
+ bool need_order, bool distinct, const char *message);
private:
/**
TRUE if the query contains an aggregate function but has no GROUP