diff options
author | unknown <root@home.(none)> | 2003-03-16 11:20:45 +0400 |
---|---|---|
committer | unknown <root@home.(none)> | 2003-03-16 11:20:45 +0400 |
commit | 2aa9f207358c2c82c63e4e5ac6f952dbf6aeddec (patch) | |
tree | 62d308724a2db0acb40080faaa7dfe8e8167837c /client/mysqlcheck.c | |
parent | 6b11fa3a247e9dd961f0a570a208cedeb750c1a7 (diff) | |
download | mariadb-git-2aa9f207358c2c82c63e4e5ac6f952dbf6aeddec.tar.gz |
mysqltest.c, mysqlimport.c, mysqldump.c, mysqlcheck.c, mysql.cc:
system_charset_info was removed
client/mysql.cc:
system_charset_info was removed
client/mysqlcheck.c:
system_charset_info was removed
client/mysqldump.c:
system_charset_info was removed
client/mysqlimport.c:
system_charset_info was removed
client/mysqltest.c:
system_charset_info was removed
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 0333833ba11..cd8cd0ef82e 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -37,14 +37,15 @@ static my_bool opt_alldbs = 0, opt_check_only_changed = 0, opt_extended = 0, tty_password = 0, opt_frm = 0; static uint verbose = 0, opt_mysql_port=0; static my_string opt_mysql_unix_port = 0; -static char *opt_password = 0, *current_user = 0, *default_charset = 0, - *current_host = 0; +static char *opt_password = 0, *current_user = 0, + *default_charset = (char *)MYSQL_CHARSET, *current_host = 0; static int first_error = 0; DYNAMIC_ARRAY tables4repair; #ifdef HAVE_SMEM static char *shared_memory_base_name=0; #endif static uint opt_protocol=0; +static CHARSET_INFO *charset_info= &my_charset_latin1; enum operations {DO_CHECK, DO_REPAIR, DO_ANALYZE, DO_OPTIMIZE}; @@ -307,11 +308,8 @@ static int get_options(int *argc, char ***argv) else what_to_do = DO_CHECK; } - if (default_charset) - { - if (!(system_charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) + if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME)))) exit(1); - } if (*argc > 0 && opt_alldbs) { printf("You should give only options, no arguments at all, with option\n"); |