summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-08-08 22:02:10 -0700
committerIgor Babaev <igor@askmonty.org>2011-08-08 22:02:10 -0700
commitb7e9713ee3313415ba4ac7322405fef89befdfda (patch)
tree615af6528be304f32ab66ea0d1e6d4a98d25d214 /sql
parent2ea5096cecbfd3cafd988d6f7bef1f1939a25082 (diff)
downloadmariadb-git-b7e9713ee3313415ba4ac7322405fef89befdfda.tar.gz
Fixed LP bug #819716.
Do not optimize derived table for the second time ever.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_derived.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index a45b8b05a82..e012c161945 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -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;