summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-04-13 21:29:06 +0200
committerunknown <serg@serg.mysql.com>2001-04-13 21:29:06 +0200
commitac221066ef941f2e87e9514b8d91953babfb8320 (patch)
treeae2d8790dbf1ae24cc87a52f4f3aa16bbb1d8158 /sql/sql_class.cc
parent61d9206d9c07beb80f5cdfcc877f4c09258bd8cb (diff)
parent898bc3a29a07b013efcb487e2436b30f86bd2a1f (diff)
downloadmariadb-git-ac221066ef941f2e87e9514b8d91953babfb8320.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)