1
0
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:
Aleksey Midenkov
2017-12-05 12:21:25 +03:00
parent 3d88a72f76
commit 6ac773421f
3 changed files with 25 additions and 2 deletions

View File

@ -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)
{