diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-02-14 14:09:29 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-02-14 14:09:29 +0100 |
commit | fb27ce22f77705d394beb6acd7aa4be2ff008890 (patch) | |
tree | cf1288c289055405cf14f2b9ee408a90948e95ab /sql/item_subselect.cc | |
parent | e2a99f1863a7a4d5d6d22c9f39de3b255c959f98 (diff) | |
parent | 5a21dc7df1024c13c212f687c5ebc40d9cb74c5b (diff) | |
download | mariadb-git-fb27ce22f77705d394beb6acd7aa4be2ff008890.tar.gz |
5.3 merge
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index be3879758a3..65ce50c1e3c 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -2883,7 +2883,7 @@ subselect_single_select_engine(THD *thd_arg, st_select_lex *select, select_result_interceptor *result_arg, Item_subselect *item_arg) :subselect_engine(thd_arg, item_arg, result_arg), - prepared(0), executed(0), optimize_error(0), + prepared(0), executed(0), select_lex(select), join(0) { select_lex->master_unit()->item= item_arg; @@ -2897,7 +2897,7 @@ int subselect_single_select_engine::get_identifier() void subselect_single_select_engine::cleanup() { DBUG_ENTER("subselect_single_select_engine::cleanup"); - prepared= executed= optimize_error= 0; + prepared= executed= 0; join= 0; result->cleanup(); select_lex->uncacheable&= ~UNCACHEABLE_DEPENDENT_INJECTED; @@ -3131,9 +3131,6 @@ int subselect_single_select_engine::exec() { DBUG_ENTER("subselect_single_select_engine::exec"); - if (optimize_error) - DBUG_RETURN(1); - char const *save_where= thd->where; SELECT_LEX *save_select= thd->lex->current_select; thd->lex->current_select= select_lex; @@ -3146,7 +3143,7 @@ int subselect_single_select_engine::exec() if (join->optimize()) { thd->where= save_where; - executed= optimize_error= 1; + executed= 1; thd->lex->current_select= save_select; DBUG_RETURN(join->error ? join->error : 1); } |