mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SQL: WHERE cond freed prematurely for PS [#365 bug 10]
Applicable to vanilla version. Applies to Item_cond_and, etc.: items with allocating copy_andor_structure(). Tests affected (forced mode): main.subselect_sj main.subselect_sj_jcl6
This commit is contained in:
@ -3775,6 +3775,7 @@ void st_select_lex::fix_prepare_information(THD *thd, Item **conds,
|
||||
DBUG_ENTER("st_select_lex::fix_prepare_information");
|
||||
if (!thd->stmt_arena->is_conventional() && first_execution)
|
||||
{
|
||||
Query_arena_stmt on_stmt_arena(thd);
|
||||
first_execution= 0;
|
||||
if (group_list.first)
|
||||
{
|
||||
|
Reference in New Issue
Block a user