1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed LP bug #819716.

Do not optimize derived table for the second time ever.
This commit is contained in:
Igor Babaev
2011-08-08 22:02:10 -07:00
parent 2ea5096cec
commit b7e9713ee3
5 changed files with 29 additions and 3 deletions

View File

@ -737,7 +737,7 @@ bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived)
bool res= FALSE;
if (unit->optimized && !unit->uncacheable && !unit->describe)
if (unit->optimized)
return FALSE;
lex->current_select= first_select;