summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2012-01-03 23:16:16 +0100
committerSergey Petrunya <psergey@askmonty.org>2012-01-03 23:16:16 +0100
commitb01348879d066c3207ac70aa630ed021a2552920 (patch)
tree44b64f886288ac8b8b5c49ae9a94fe574ddc7c5f /sql/sql_select.h
parent7714496dc1c72d01fd214cb7737ca4216a982e0f (diff)
parentca020dfa9e8668ce52eaff92c157097bba671ec1 (diff)
downloadmariadb-git-b01348879d066c3207ac70aa630ed021a2552920.tar.gz
MWL#182: Explain running statements: merge with 5.3-main (needs fixing)
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 8b3da18c976..ed5a551b1d8 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -1137,7 +1137,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
/*
@@ -1248,9 +1248,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();
@@ -1360,6 +1362,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
@@ -1652,6 +1658,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);