mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
make JOIN::prepare, JOIN::optimize only once for EXPLAIN of derived table
(BUG#2120 sfter merge)
This commit is contained in:
@ -62,6 +62,15 @@ mysql_handle_derived(LEX *lex)
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (lex->describe)
|
||||
{
|
||||
/*
|
||||
Force join->join_tmp creation, because we will use this JOIN
|
||||
twice for EXPLAIN and we have to have unchanged join for EXPLAINing
|
||||
*/
|
||||
sl->uncacheable|= UNCACHEABLE_EXPLAIN;
|
||||
sl->master_unit()->uncacheable|= UNCACHEABLE_EXPLAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user