Skip to content

Commit

Permalink
followup: fix ASAN failure of main.opt_tvc --ps
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova authored and sanja-byelkin committed Oct 29, 2022
1 parent 09c4253 commit a472237
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions sql/sql_tvc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1173,12 +1173,10 @@ bool JOIN::transform_in_predicates_into_in_subq(THD *thd)
{
select_lex->parsing_place= IN_WHERE;
conds=
conds->transform(thd,
&Item::in_predicate_to_in_subs_transformer,
(uchar*) 0);
conds->top_level_transform(thd,
&Item::in_predicate_to_in_subs_transformer, 0);
if (!conds)
DBUG_RETURN(true);
select_lex->prep_where= conds ? conds->copy_andor_structure(thd) : 0;
select_lex->where= conds;
}

Expand All @@ -1193,13 +1191,10 @@ bool JOIN::transform_in_predicates_into_in_subq(THD *thd)
if (table->on_expr)
{
table->on_expr=
table->on_expr->transform(thd,
&Item::in_predicate_to_in_subs_transformer,
(uchar*) 0);
table->on_expr->top_level_transform(thd,
&Item::in_predicate_to_in_subs_transformer, 0);
if (!table->on_expr)
DBUG_RETURN(true);
table->prep_on_expr= table->on_expr ?
table->on_expr->copy_andor_structure(thd) : 0;
}
}
}
Expand Down

0 comments on commit a472237

Please sign in to comment.