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:
@ -1293,11 +1293,6 @@ bool mysql_derived_reinit(THD *thd, LEX *lex, TABLE_LIST *derived)
|
||||
unit->types.empty();
|
||||
/* for derived tables & PS (which can't be reset by Item_subselect) */
|
||||
unit->reinit_exec_mechanism();
|
||||
for (st_select_lex *sl= unit->first_select(); sl; sl= sl->next_select())
|
||||
{
|
||||
sl->cond_pushed_into_where= NULL;
|
||||
sl->cond_pushed_into_having= NULL;
|
||||
}
|
||||
unit->set_thd(thd);
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user