Commit 35657273 authored by unknown's avatar unknown

mysqlimport.c, mysqldump.c, mysqlcheck.c:

  Bug fix: latin1 is not compiled charset and is not specified..
mysql.cc:
  Bug fix: latin1 is not compiled charset and is not specified...


client/mysql.cc:
  Bug fix: latin1 is not compiled charset and is not specified...
client/mysqlcheck.c:
  Bug fix: latin1 is not compiled charset and is not specified..
client/mysqldump.c:
  Bug fix: latin1 is not compiled charset and is not specified..
client/mysqlimport.c:
  Bug fix: latin1 is not compiled charset and is not specified..
parent a2867c7a
...@@ -809,7 +809,8 @@ static int get_options(int argc, char **argv) ...@@ -809,7 +809,8 @@ static int get_options(int argc, char **argv)
opt_reconnect= 0; opt_reconnect= 0;
connect_flag= 0; /* Not in interactive mode */ connect_flag= 0; /* Not in interactive mode */
} }
if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) if (!(charset_info= get_charset_by_csname(default_charset,
MY_CS_PRIMARY, MYF(MY_WME))))
exit(1); exit(1);
if (argc > 1) if (argc > 1)
{ {
......
...@@ -308,7 +308,8 @@ static int get_options(int *argc, char ***argv) ...@@ -308,7 +308,8 @@ static int get_options(int *argc, char ***argv)
else else
what_to_do = DO_CHECK; what_to_do = DO_CHECK;
} }
if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) if (!(charset_info= get_charset_by_csname(default_charset,
MY_CS_PRIMARY, MYF(MY_WME))))
exit(1); exit(1);
if (*argc > 0 && opt_alldbs) if (*argc > 0 && opt_alldbs)
{ {
......
...@@ -492,7 +492,8 @@ static int get_options(int *argc, char ***argv) ...@@ -492,7 +492,8 @@ static int get_options(int *argc, char ***argv)
my_progname); my_progname);
return(1); return(1);
} }
if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) if (!(charset_info= get_charset_by_csname(default_charset,
MY_CS_PRIMARY, MYF(MY_WME))))
exit(1); exit(1);
if ((*argc < 1 && !opt_alldbs) || (*argc > 0 && opt_alldbs)) if ((*argc < 1 && !opt_alldbs) || (*argc > 0 && opt_alldbs))
{ {
......
...@@ -239,7 +239,8 @@ static int get_options(int *argc, char ***argv) ...@@ -239,7 +239,8 @@ static int get_options(int *argc, char ***argv)
fprintf(stderr, "You can't use --ignore (-i) and --replace (-r) at the same time.\n"); fprintf(stderr, "You can't use --ignore (-i) and --replace (-r) at the same time.\n");
return(1); return(1);
} }
if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) if (!(charset_info= get_charset_by_csname(default_charset,
MY_CS_PRIMARY, MYF(MY_WME))))
exit(1); exit(1);
if (*argc < 2) if (*argc < 2)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment