Post-merge fixes part #1.

This commit is contained in:
Sergey Petrunya 2011-05-26 11:30:14 +04:00
parent 77b3b960b1
commit f0038da8f6
2 changed files with 3 additions and 1 deletions

View file

@ -666,7 +666,6 @@ INSERT INTO t2 VALUES ('f'),('d');
SET @old_optimizer_switch = @@session.optimizer_switch;
SET SESSION optimizer_switch = 'materialization=on,in_to_exists=off,';
select sin(0);
EXPLAIN
SELECT * FROM t1
WHERE f3 = (

View file

@ -9114,7 +9114,10 @@ void JOIN_TAB::cleanup()
if (table->pos_in_table_list &&
table->pos_in_table_list->jtbm_subselect)
{
end_read_record(&read_record);
//psergey-merge:
table->pos_in_table_list->jtbm_subselect->cleanup();
return;
}
/*
We need to reset this for next select