mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-sp2-5.0
This commit is contained in:
@ -367,7 +367,14 @@ JOIN::prepare(Item ***rref_pointer_array,
|
||||
Item_subselect::trans_res res;
|
||||
if ((res= subselect->select_transformer(this)) !=
|
||||
Item_subselect::RES_OK)
|
||||
{
|
||||
if (thd->current_arena && select_lex->first_execution)
|
||||
{
|
||||
select_lex->prep_where= select_lex->where;
|
||||
select_lex->first_execution= 0;
|
||||
}
|
||||
DBUG_RETURN((res == Item_subselect::RES_ERROR));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,6 +477,11 @@ JOIN::prepare(Item ***rref_pointer_array,
|
||||
if (alloc_func_list())
|
||||
goto err;
|
||||
|
||||
if (thd->current_arena && select_lex->first_execution)
|
||||
{
|
||||
select_lex->prep_where= select_lex->where;
|
||||
select_lex->first_execution= 0;
|
||||
}
|
||||
DBUG_RETURN(0); // All OK
|
||||
|
||||
err:
|
||||
|
Reference in New Issue
Block a user