diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-10-27 21:41:19 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-10-27 21:41:19 +0400 |
commit | 286a751490cd109a470e30ef486755cd4922802d (patch) | |
tree | c872e9c0ead4815600c2e1e490346e5805d16fec /sql/sql_select.h | |
parent | 08e9e6a790ea6ba8bbe6fa5c5bd54677f4add072 (diff) | |
parent | ba09d25abc1fd3dbe55f1d7974cfe6a1ebda4df0 (diff) | |
download | mariadb-git-286a751490cd109a470e30ef486755cd4922802d.tar.gz |
MWL#182: Explain running statements
- Merge with 5.3-main
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 0a416966995..78decaae039 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -958,7 +958,7 @@ public: const char *zero_result_cause; ///< not 0 if exec must return zero result bool union_part; ///< this subselect is part of union - bool optimized; ///< flag to avoid double optimization in EXPLAIN + int optimized; ///< flag to avoid double optimization in EXPLAIN bool initialized; ///< flag to avoid double init_execution calls /* @@ -1069,9 +1069,11 @@ public: SELECT_LEX_UNIT *unit); bool prepare_stage2(); int optimize(); + int optimize_inner(); int reinit(); int init_execution(); void exec(); + void exec_inner(); int destroy(); void restore_tmp(); bool alloc_func_list(); @@ -1162,6 +1164,10 @@ public: { return (unit->item && unit->item->is_in_predicate()); } + + int print_explain(select_result_sink *result, bool on_the_fly, + 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 @@ -1454,6 +1460,9 @@ inline bool optimizer_flag(THD *thd, uint flag) return (thd->variables.optimizer_switch & flag); } +int print_fake_select_lex_join(select_result_sink *result, bool on_the_fly, + SELECT_LEX *select_lex, uint8 select_options); + /* Table elimination entry point function */ void eliminate_tables(JOIN *join); |