summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-01-17 14:03:22 +0200
committerunknown <bell@sanja.is.com.ua>2004-01-17 14:03:22 +0200
commite6213fe4e7a1eaa25697381b3c247ce26daa8db5 (patch)
tree46150fdb4fc6d99018c135f98c8b879c3a69909a /sql/sql_derived.cc
parent2de832dbf99a8796b081419a29cacbeb07cd3871 (diff)
parent5e55cd5d0feba9e276ddc8bc4c2e225f714b3290 (diff)
downloadmariadb-git-e6213fe4e7a1eaa25697381b3c247ce26daa8db5.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-ft_derived-4.1 sql/sql_derived.cc: Auto merged
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 10d2254969a..d70917eb47f 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);