summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-03-22 13:23:55 +0100
committerunknown <knielsen@knielsen-hq.org>2012-03-22 13:23:55 +0100
commit65528b783fad655bb16316eca69cd848763fe361 (patch)
treee93b186ca5ebe33c893762b1787e9ea768bcb86b /sql/opt_subselect.cc
parente6c213897d8bd39df7b8734afeabf25eca9f4e5f (diff)
parent8e0afbd8af846073e00271aa4721b066e6cfb112 (diff)
downloadmariadb-git-65528b783fad655bb16316eca69cd848763fe361.tar.gz
Automerge.
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index 24305ec194f..a65f53a86c2 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -4936,7 +4936,6 @@ bool setup_jtbm_semi_joins(JOIN *join, List<TABLE_LIST> *join_list,
bool JOIN::choose_subquery_plan(table_map join_tables)
{
- Join_plan_state save_qep; /* The original QEP of the subquery. */
enum_reopt_result reopt_result= REOPT_NONE;
Item_in_subselect *in_subs;
@@ -4955,12 +4954,15 @@ bool JOIN::choose_subquery_plan(table_map join_tables)
}
else
return false;
+
/* A strategy must be chosen earlier. */
DBUG_ASSERT(in_subs->has_strategy());
DBUG_ASSERT(in_to_exists_where || in_to_exists_having);
DBUG_ASSERT(!in_to_exists_where || in_to_exists_where->fixed);
DBUG_ASSERT(!in_to_exists_having || in_to_exists_having->fixed);
+ Join_plan_state save_qep; /* The original QEP of the subquery. */
+
/*
Compute and compare the costs of materialization and in-exists if both
strategies are possible and allowed by the user (checked during the prepare