mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17362: SIGSEGV in JOIN::optimize_inner or Assertion `fixed == 0' failed in Item_equal::fix_fields, server crashes after 2nd execution of PS
Move reinitialisation of pushdown variables for every query, because it used now not only for derived tables.
This commit is contained in:
@ -3026,6 +3026,10 @@ void reinit_stmt_before_use(THD *thd, LEX *lex)
|
||||
for (order= win_spec->order_list->first; order; order= order->next)
|
||||
order->item= &order->item_ptr;
|
||||
}
|
||||
|
||||
// Reinit Pushdown
|
||||
sl->cond_pushed_into_where= NULL;
|
||||
sl->cond_pushed_into_having= NULL;
|
||||
}
|
||||
if (sl->changed_elements & TOUCHED_SEL_DERIVED)
|
||||
{
|
||||
|
Reference in New Issue
Block a user