summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-12-05 19:38:42 +0200
committermonty@mashka.mysql.fi <>2002-12-05 19:38:42 +0200
commit859b68847666823baa328c5c7f3da96787807bb3 (patch)
tree56f9dc35fe3c9e6c4f341e577ff3db68855d9e81 /sql/sql_udf.cc
parent564487d7c00098e8a37c8e675197414667685452 (diff)
parent496a0e1630f9dc4047fb5244cb87ee5ca03b409e (diff)
downloadmariadb-git-859b68847666823baa328c5c7f3da96787807bb3.tar.gz
Merge with 4.0.6
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 35e33caf572..51d43b41833 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -203,6 +203,8 @@ void udf_init()
new_thd->version--; // Force close to free memory
close_thread_tables(new_thd);
delete new_thd;
+ /* Remember that we don't have a THD */
+ my_pthread_setspecific_ptr(THR_THD, 0);
DBUG_VOID_RETURN;
}