mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
be sure to call top_level_item() on the new Item_cond_and,
that merges ON and WHERE (BUG#10162)
This commit is contained in:
@ -7396,6 +7396,7 @@ simplify_joins(JOIN *join, List<TABLE_LIST> *join_list, COND *conds, bool top)
|
||||
if (conds)
|
||||
{
|
||||
conds= and_conds(conds, table->on_expr);
|
||||
conds->top_level_item();
|
||||
/* conds is always a new item as both cond and on_expr existed */
|
||||
DBUG_ASSERT(!conds->fixed);
|
||||
conds->fix_fields(join->thd, 0, &conds);
|
||||
|
Reference in New Issue
Block a user