summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parentee1ef8c58c9df9a62f7a0cc3dee6c2f705c8eb44 (diff)
downloadmariadb-git-8959b690fe796a44ddda440290b3fe9a9cf89ca5.tar.gz
Hash now supports several charsets
Diffstat (limited to 'tools')
-rw-r--r--tools/mysqlmanager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c
index 9dbf433d8a1..536b76a1351 100644
--- a/tools/mysqlmanager.c
+++ b/tools/mysqlmanager.c
@@ -1655,7 +1655,8 @@ static void init_user_hash()
FILE* f;
char buf[80];
int line_num=1;
- if (hash_init(&user_hash,1024,0,0,get_user_key,manager_user_free,MYF(0)))
+ if (hash_init(&user_hash,system_charset_info,1024,0,0,
+ get_user_key,manager_user_free,MYF(0)))
die("Could not initialize user hash");
if (!(f=fopen(manager_pw_file,"r")))
die("Could not open password file '%s'", manager_pw_file);
@@ -1693,7 +1694,8 @@ static void init_pid_file()
static void init_globals()
{
pthread_attr_t thr_attr;
- if (hash_init(&exec_hash,1024,0,0,get_exec_key,manager_exec_free,MYF(0)))
+ if (hash_init(&exec_hash,system_charset_info,1024,0,0,
+ get_exec_key,manager_exec_free,MYF(0)))
die("Exec hash initialization failed");
if (!one_thread)
{