1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

mysqlimport.c, mysqldump.c, mysqlcheck.c, mysql.cc:

No needs to load charset index if the character set is build-in.
This commit is contained in:
bar@bar.intranet.mysql.r18.ru
2004-02-11 15:15:39 +04:00
parent f8f0c212f3
commit 251bf4ab85
4 changed files with 9 additions and 4 deletions

View File

@ -311,7 +311,8 @@ static int get_options(int *argc, char ***argv)
}
/* TODO: This variable is not yet used */
if (!(charset_info= get_charset_by_csname(default_charset,
if (strcmp(default_charset, charset_info->csname) &&
!(charset_info= get_charset_by_csname(default_charset,
MY_CS_PRIMARY, MYF(MY_WME))))
exit(1);
if (*argc > 0 && opt_alldbs)