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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user