summaryrefslogtreecommitdiff
path: root/client/mysqlshow.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/mysqlshow.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/mysqlshow.c')
-rw-r--r--client/mysqlshow.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/mysqlshow.c b/client/mysqlshow.c
index 2326d72ea34..95d94e5feda 100644
--- a/client/mysqlshow.c
+++ b/client/mysqlshow.c
@@ -16,7 +16,7 @@
/* Show databases, tables or columns */
-#define SHOW_VERSION "9.0"
+#define SHOW_VERSION "9.1"
#include <my_global.h>
#include "client_priv.h"
@@ -144,8 +144,9 @@ static struct my_option my_long_options[] =
{"password", 'p',
"Password to use when connecting to server. If password is not given it's asked from the tty.",
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
- {"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},
#ifdef __WIN__
{"pipe", 'W', "Use named pipes to connect to server.", 0, 0, 0, GET_NO_ARG,
NO_ARG, 0, 0, 0, 0, 0, 0},