summaryrefslogtreecommitdiff
path: root/client/mysqlcheck.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
commit3dd3414739a8d668b7d611af1f456e3fd33f7a59 (patch)
tree8f8fd16d50627a5416d739d24130c15cfb52ff8f /client/mysqlcheck.c
parent3a98842da531ba70195ab000ba0cb6bba88ba57a (diff)
downloadmariadb-git-3dd3414739a8d668b7d611af1f456e3fd33f7a59.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/mysqlcheck.c')
-rw-r--r--client/mysqlcheck.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index 7945407ccae..8717b40fddd 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -16,7 +16,7 @@
/* By Jani Tolonen, 2001-04-20, MySQL Development Team */
-#define CHECK_VERSION "2.0"
+#define CHECK_VERSION "2.1"
#include "client_priv.h"
#include <my_getopt.h>
@@ -107,8 +107,9 @@ static struct my_option my_long_options[] =
{"pipe", 'W', "Use named pipes to connect to server.", 0, 0, 0, GET_NO_ARG,
NO_ARG, 0, 0, 0, 0, 0, 0},
#endif
- {"port", 'P', "Port number to use for connection.", 0, 0, 0, GET_LONG,
- REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ {"port", 'P', "Port number to use for connection.", (gptr*) &opt_mysql_port,
+ (gptr*) &opt_mysql_port, 0, GET_UINT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0,
+ 0},
{"quick", 'q',
"If you are using this option with CHECK TABLE, it prevents the check from scanning the rows to check for wrong links. This is the fastest check. If you are using this option with REPAIR TABLE, it will try to repair only the index tree. This is the fastest repair method for a table.",
(gptr*) &opt_quick, (gptr*) &opt_quick, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,