summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-04-01 12:45:16 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-04-01 12:45:16 +0500
commitdb628b97a5aef69413b9b429e36c4872897e5693 (patch)
treeef837bf4fdaa936bc57607d203b03ebdf06a0a26 /sql/sql_udf.cc
parentc7db0a813cdf91855b885c6d9bf85e12716d8e00 (diff)
downloadmariadb-git-db628b97a5aef69413b9b429e36c4872897e5693.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);