diff options
author | Igor Babaev <igor@askmonty.org> | 2011-08-08 22:02:10 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-08-08 22:02:10 -0700 |
commit | b7e9713ee3313415ba4ac7322405fef89befdfda (patch) | |
tree | 615af6528be304f32ab66ea0d1e6d4a98d25d214 /sql | |
parent | 2ea5096cecbfd3cafd988d6f7bef1f1939a25082 (diff) | |
download | mariadb-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.cc | 2 |
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; |