1
0
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:
Oleksandr Byelkin
2019-04-02 15:04:45 +02:00
parent 6c306a729d
commit eb056f8726
5 changed files with 73 additions and 7 deletions

View File

@ -13463,8 +13463,10 @@ void JOIN::join_free()
void JOIN::cleanup(bool full)
{
DBUG_ENTER("JOIN::cleanup");
DBUG_PRINT("enter", ("full %u", (uint) full));
DBUG_PRINT("enter", ("select: %d (%p) join: %p full: %u",
select_lex->select_number, select_lex, this,
(uint) full));
if (full)
have_query_plan= QEP_DELETED;