summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-04-01 12:45:16 +0500
committerbar@bar.mysql.r18.ru <>2003-04-01 12:45:16 +0500
commit5b50426f8f869b5f54d6a629e5fcac944ad6581b (patch)
treeef837bf4fdaa936bc57607d203b03ebdf06a0a26 /sql/sql_udf.cc
parentffa5f52e2db11d3f72b57ae9a1c54c245c7359ca (diff)
downloadmariadb-git-5b50426f8f869b5f54d6a629e5fcac944ad6581b.tar.gz
Some optimization in CHARSET_INFO:
We don't need separate hash_sort() and hash_caseup() We don't need tosort(). strnxfrm will do the same.
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 450f1dd09ae..42f4dddea8d 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -128,8 +128,7 @@ void udf_init()
init_sql_alloc(&mem, 1024,0);
THD *new_thd = new THD;
if (!new_thd ||
- hash_init(&udf_hash,system_charset_info,
- 32,0,0,get_hash_key, NULL, HASH_CASE_INSENSITIVE))
+ hash_init(&udf_hash,system_charset_info,32,0,0,get_hash_key, NULL, 0))
{
sql_print_error("Can't allocate memory for udf structures");
hash_free(&udf_hash);