summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-08-27 09:47:21 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-08-27 09:47:21 +0400
commitd9045bce1ddf1f017f0e127606c809271c953ef0 (patch)
tree72fb6e272c5301e6d7f5f3bbafd934db5fad1560 /sql/opt_subselect.cc
parentf4dd6831f5863ea5f239ca24c5b3c03bd2575c4a (diff)
downloadmariadb-git-d9045bce1ddf1f017f0e127606c809271c953ef0.tar.gz
-Make show_explain.test stable
- Fix st_select_lex::set_explain_type() to allow producing exactly the same EXPLAINs as it did before. SHOW EXPLAIN output may produce select_type=SIMPLE instead or select_type=PRIMARY or vice versa (which is ok because values of select_type weren't self-consistent in this regard to begin with)
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index 6c5e177fe1d..f8b6f80eb14 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -1346,7 +1346,8 @@ static bool convert_subq_to_sj(JOIN *parent_join, Item_in_subselect *subq_pred)
while ((ifm= li++))
parent_lex->ftfunc_list->push_front(ifm);
}
-
+
+ parent_lex->have_merged_subqueries= TRUE;
DBUG_RETURN(FALSE);
}
@@ -1458,6 +1459,8 @@ static bool convert_subq_to_jtbm(JOIN *parent_join,
create_subquery_temptable_name(tbl_alias, hash_sj_engine->materialize_join->
select_lex->select_number);
jtbm->alias= tbl_alias;
+
+ parent_lex->have_merged_subqueries= TRUE;
#if 0
/* Inject sj_on_expr into the parent's WHERE or ON */
if (emb_tbl_nest)