1
0
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:
Igor Babaev
2012-01-17 23:42:49 -08:00
parent 8b278b4415
commit 4fa282db2b

View File

@ -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;