summaryrefslogtreecommitdiff
path: root/client/mysqlimport.c
diff options
context:
space:
mode:
authorunknown <jani@dsl-jkl1657.dial.inet.fi>2002-05-11 14:36:34 +0300
committerunknown <jani@dsl-jkl1657.dial.inet.fi>2002-05-11 14:36:34 +0300
commitce658857d03b0242c04031dff4d615a1e7d98b48 (patch)
tree8f8fd16d50627a5416d739d24130c15cfb52ff8f /client/mysqlimport.c
parentc4a3b7c7c8e4460780db8863c16eb75c144d3c3d (diff)
downloadmariadb-git-ce658857d03b0242c04031dff4d615a1e7d98b48.tar.gz
- Fixed some option types in my_getopt struct in all clients.
- Added special option/variable prefix '--loose-' to my_getopt.c client/mysql.cc: Fixed some variable types. client/mysqladmin.c: Fixed some variable types. client/mysqlcheck.c: Fixed some variable types. client/mysqldump.c: Fixed some variable types. client/mysqlimport.c: Fixed some variable types. client/mysqlshow.c: Fixed some variable types. myisam/myisamchk.c: Fixed some variable types. mysys/my_getopt.c: Fixed a bug in noticing whether argument was allowed to option (variable). Added support for prefix --loose-option-name This will work with options and variables, but not with --set-variable (!) --set-variable is depricated and --variable-name=value should be used instead. When used, my_getopt will not return error if option/variable was not found, but print a warning, do a no-op and continue. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r--client/mysqlimport.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index e8403abe8c1..89b6a1b7e63 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -25,7 +25,7 @@
** * *
** *************************
*/
-#define IMPORT_VERSION "3.0"
+#define IMPORT_VERSION "3.1"
#include "client_priv.h"
#include "mysql_version.h"
@@ -91,7 +91,7 @@ static struct my_option my_long_options[] =
{"ignore", 'i', "If duplicate unique key was found, keep old row.",
(gptr*) &ignore, (gptr*) &ignore, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"ignore-lines", OPT_IGN_LINES, "Ignore first n lines of data infile.", 0, 0,
- 0, GET_LL, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"lines-terminated-by", OPT_LTB, "Lines in the i.file are terminated by ...",
(gptr*) &lines_terminated, (gptr*) &lines_terminated, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -110,7 +110,8 @@ static struct my_option my_long_options[] =
NO_ARG, 0, 0, 0, 0, 0, 0},
#endif
{"port", 'P', "Port number to use for connection.", (gptr*) &opt_mysql_port,
- (gptr*) &opt_mysql_port, 0, GET_LONG, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ (gptr*) &opt_mysql_port, 0, GET_UINT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0,
+ 0},
{"replace", 'r', "If duplicate unique key was found, replace old row.",
(gptr*) &replace, (gptr*) &replace, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"silent", 's', "Be more silent.", (gptr*) &silent, (gptr*) &silent, 0,