mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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())
|
||||
{
|
||||
JOIN *join= first_select->join;
|
||||
unit->set_limit(first_select);
|
||||
unit->optimized= TRUE;
|
||||
if ((res= join->optimize()))
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user