summaryrefslogtreecommitdiff
path: root/client/mysqlshow.c
diff options
context:
space:
mode:
authorjani@dsl-jkl1657.dial.inet.fi <>2002-05-11 14:36:34 +0300
committerjani@dsl-jkl1657.dial.inet.fi <>2002-05-11 14:36:34 +0300
commit4945fd4a05dff53f4515226868269e95c742732c (patch)
tree8f8fd16d50627a5416d739d24130c15cfb52ff8f /client/mysqlshow.c
parentb292571c775babdd3d9b5c006e92f62e7ed2cef2 (diff)
downloadmariadb-git-4945fd4a05dff53f4515226868269e95c742732c.tar.gz
- Fixed some option types in my_getopt struct in all clients.
- Added special option/variable prefix '--loose-' to my_getopt.c
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},