summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-01-06 13:13:04 +0200
committerunknown <bell@sanja.is.com.ua>2004-01-06 13:13:04 +0200
commit5e55cd5d0feba9e276ddc8bc4c2e225f714b3290 (patch)
tree9e0d6602f86c74e3b8d99a71586398be8eaa3bdc /sql/sql_derived.cc
parentd4a7fa95eef5f9463c3fbe405ff1ae3416e3168a (diff)
downloadmariadb-git-5e55cd5d0feba9e276ddc8bc4c2e225f714b3290.tar.gz
As far as we cut off derived table branch, we have to close JOINs (BUG#2141)
(test case is absend because it is multi-thread and very big) sql/sql_derived.cc: As far as we cut off this branch, we have to close JOINs
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index e8f1c5d87de..ab3ef8da21a 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -198,7 +198,10 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
}
}
else
+ {
unit->exclude_tree();
+ unit->cleanup();
+ }
org_table_list->db= (char *)"";
// Force read of table stats in the optimizer
table->file->info(HA_STATUS_VARIABLE);