summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorunknown <bar@gw.udmsearch.izhnet.ru>2002-03-14 21:44:42 +0400
committerunknown <bar@gw.udmsearch.izhnet.ru>2002-03-14 21:44:42 +0400
commit8959b690fe796a44ddda440290b3fe9a9cf89ca5 (patch)
treed80812bbab290e762f4a058cded480022c09d0f3 /sql/sql_udf.cc
parentee1ef8c58c9df9a62f7a0cc3dee6c2f705c8eb44 (diff)
downloadmariadb-git-8959b690fe796a44ddda440290b3fe9a9cf89ca5.tar.gz
Hash now supports several charsets
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 9493f969802..f44fa3b7321 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -127,7 +127,8 @@ void udf_init()
init_sql_alloc(&mem, 1024,0);
THD *new_thd = new THD;
if (!new_thd ||
- hash_init(&udf_hash,32,0,0,get_hash_key, NULL, HASH_CASE_INSENSITIVE))
+ hash_init(&udf_hash,system_charset_info,
+ 32,0,0,get_hash_key, NULL, HASH_CASE_INSENSITIVE))
{
sql_print_error("Can't allocate memory for udf structures");
hash_free(&udf_hash);