summaryrefslogtreecommitdiff
path: root/client/mysqlimport.c
diff options
context:
space:
mode:
authorunknown <root@home.(none)>2003-03-16 11:20:45 +0400
committerunknown <root@home.(none)>2003-03-16 11:20:45 +0400
commit2aa9f207358c2c82c63e4e5ac6f952dbf6aeddec (patch)
tree62d308724a2db0acb40080faaa7dfe8e8167837c /client/mysqlimport.c
parent6b11fa3a247e9dd961f0a570a208cedeb750c1a7 (diff)
downloadmariadb-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/mysqlimport.c')
-rw-r--r--client/mysqlimport.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index ff6895145f7..efb117280c4 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -43,10 +43,12 @@ static MYSQL mysql_connection;
static char *opt_password=0, *current_user=0,
*current_host=0, *current_db=0, *fields_terminated=0,
*lines_terminated=0, *enclosed=0, *opt_enclosed=0,
- *escaped=0, *opt_columns=0, *default_charset;
+ *escaped=0, *opt_columns=0,
+ *default_charset= (char*) MYSQL_CHARSET;
static uint opt_mysql_port=0;
static my_string opt_mysql_unix_port=0;
static my_string opt_ignore_lines=0;
+static CHARSET_INFO *charset_info= &my_charset_latin1;
#include <sslopt-vars.h>
#ifdef HAVE_SMEM
@@ -237,11 +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");
return(1);
}
- if (default_charset)
- {
- if (!(system_charset_info= get_charset_by_name(default_charset, MYF(MY_WME))))
- exit(1);
- }
+ if (!(charset_info= get_charset_by_name(default_charset, MYF(MY_WME))))
+ exit(1);
if (*argc < 2)
{
usage();