diff options
author | dlenev@brandersnatch.localdomain <> | 2004-12-19 12:51:40 +0300 |
---|---|---|
committer | dlenev@brandersnatch.localdomain <> | 2004-12-19 12:51:40 +0300 |
commit | 48fcadf358cad7e12aa540d4187ffb9733cd2100 (patch) | |
tree | c3909890eafc56e4e19ee4d5fff8709631e4b1bf /sql/sql_derived.cc | |
parent | 325ec86ea1c63bbb3e32be01c74d298af99110bf (diff) | |
download | mariadb-git-48fcadf358cad7e12aa540d4187ffb9733cd2100.tar.gz |
Small cleanup of derived tables handling.
We should not call free_tmp_table() for derived table in
mysql_derived_filling(), since by this moment this table is already
registered in THD::derived_tables list and thus free_tmp_table() will
be called for it automatically in close_thread_tables().
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r-- | sql/sql_derived.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index 7cea1c6fcee..1d4b911bb65 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -268,13 +268,8 @@ int mysql_derived_filling(THD *thd, LEX *lex, TABLE_LIST *orig_table_list) unit->cleanup(); } else - { - free_tmp_table(thd, table); unit->cleanup(); - } lex->current_select= save_current_select; - if (res) - free_tmp_table(thd, table); } return res; } |