summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 6444f672176..f22716d3d81 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -5329,6 +5329,7 @@ int subselect_hash_sj_engine::exec()
item_in->reset();
item_in->make_const();
item_in->set_first_execution();
+ thd->lex->current_select= save_select;
DBUG_RETURN(FALSE);
}
@@ -5372,6 +5373,7 @@ int subselect_hash_sj_engine::exec()
item_in->null_value= 1;
item_in->make_const();
item_in->set_first_execution();
+ thd->lex->current_select= save_select;
DBUG_RETURN(FALSE);
}