summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2001-04-13 21:29:06 +0200
committerserg@serg.mysql.com <>2001-04-13 21:29:06 +0200
commit6a41e1f3a5a4fbe08e4e5743060a62964b8f6f40 (patch)
treeae2d8790dbf1ae24cc87a52f4f3aa16bbb1d8158 /sql/sql_class.cc
parentf48ed453035bc01af7ab26a662e1d9b96758a00d (diff)
parentca0ba8e0ab4c765178d7dc3e703e70919f83bfa1 (diff)
downloadmariadb-git-6a41e1f3a5a4fbe08e4e5743060a62964b8f6f40.tar.gz
merged
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 9ea3896fd78..ffcb15b4c9b 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -85,7 +85,8 @@ THD::THD():user_time(0),fatal_error(0),last_insert_id_used(0),
query_length=col_access=0;
query_error=0;
next_insert_id=last_insert_id=0;
- open_tables=temporary_tables=0;
+ open_tables=temporary_tables=handler_tables=0;
+ handler_items=0;
tmp_table=0;
lock=locked_tables=0;
used_tables=0;
@@ -163,6 +164,11 @@ THD::~THD()
lock=locked_tables; locked_tables=0;
close_thread_tables(this);
}
+ if (handler_tables)
+ {
+ open_tables=handler_tables; handler_tables=0;
+ close_thread_tables(this);
+ }
close_temporary_tables(this);
#ifdef USING_TRANSACTIONS
if (opt_using_transactions)