mysqlimport.c, mysqldump.c, mysqlcheck.c, mysql.cc:
No needs to load charset index if the character set is build-in. client/mysql.cc: No needs to load charset index if the character set is build-in. client/mysqlcheck.c: No needs to load charset index if the character set is build-in. client/mysqldump.c: No needs to load charset index if the character set is build-in. client/mysqlimport.c: No needs to load charset index if the character set is build-in.
This commit is contained in:
parent
6b86e0ebc6
commit
24e3862cb8
@ -839,7 +839,9 @@ 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_csname(default_charset,
|
|
||||||
|
if (strcmp(default_charset, charset_info->csname) &&
|
||||||
|
!(charset_info= get_charset_by_csname(default_charset,
|
||||||
MY_CS_PRIMARY, MYF(MY_WME))))
|
MY_CS_PRIMARY, MYF(MY_WME))))
|
||||||
exit(1);
|
exit(1);
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
|
@ -311,7 +311,8 @@ static int get_options(int *argc, char ***argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: This variable is not yet used */
|
/* 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))))
|
MY_CS_PRIMARY, MYF(MY_WME))))
|
||||||
exit(1);
|
exit(1);
|
||||||
if (*argc > 0 && opt_alldbs)
|
if (*argc > 0 && opt_alldbs)
|
||||||
|
@ -536,7 +536,8 @@ static int get_options(int *argc, char ***argv)
|
|||||||
my_progname);
|
my_progname);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
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))))
|
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))
|
||||||
|
@ -238,7 +238,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_csname(default_charset,
|
if (strcmp(default_charset, charset_info->csname) &&
|
||||||
|
!(charset_info= get_charset_by_csname(default_charset,
|
||||||
MY_CS_PRIMARY, MYF(MY_WME))))
|
MY_CS_PRIMARY, MYF(MY_WME))))
|
||||||
exit(1);
|
exit(1);
|
||||||
if (*argc < 2)
|
if (*argc < 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user