mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed the failure of sp.test reported in the issue MDEV-86.
This commit is contained in:
@ -750,6 +750,7 @@ bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived)
|
|||||||
if (!derived->is_merged_derived())
|
if (!derived->is_merged_derived())
|
||||||
{
|
{
|
||||||
JOIN *join= first_select->join;
|
JOIN *join= first_select->join;
|
||||||
|
unit->set_limit(first_select);
|
||||||
unit->optimized= TRUE;
|
unit->optimized= TRUE;
|
||||||
if ((res= join->optimize()))
|
if ((res= join->optimize()))
|
||||||
goto err;
|
goto err;
|
||||||
|
Reference in New Issue
Block a user