diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2009-04-09 15:42:59 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2009-04-09 15:42:59 +0800 |
commit | 3308a7f2fd33508b6dc98e4faabb3be6b40e29dc (patch) | |
tree | de701b56782d6dc6ae409dc40d640dfdbc4a9450 /client | |
parent | 1881ee2da59e87c9059ea63247f41bf280d9f8b7 (diff) | |
download | mariadb-git-3308a7f2fd33508b6dc98e4faabb3be6b40e29dc.tar.gz |
post fix compiling problem after push BUG#37145 to 5.0-bugteam
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 865c1d9a717..799609a7d27 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -4087,17 +4087,16 @@ int select_connection_name(const char *name) int select_connection(struct st_command *command) { - char *name; char *p= command->first_argument; + static DYNAMIC_STRING ds_connection; + const struct command_arg connection_args[] = { + { "connection_name", ARG_STRING, TRUE, &ds_connection, "Name of the connection that we switch to." } + }; DBUG_ENTER("select_connection"); if (!*p) die("Missing connection name in connect"); - static DYNAMIC_STRING ds_connection; - const struct command_arg connection_args[] = { - { "connection_name", ARG_STRING, TRUE, &ds_connection, "Name of the connection that we switch to." } - }; check_command_args(command, command->first_argument, connection_args, sizeof(connection_args)/sizeof(struct command_arg), ','); |