Commit 74a332d5 authored by He Zhenxing's avatar He Zhenxing

post fix compiling problem after push BUG#37145 to 5.0-bugteam

parent 83d710e8
...@@ -4087,17 +4087,16 @@ int select_connection_name(const char *name) ...@@ -4087,17 +4087,16 @@ int select_connection_name(const char *name)
int select_connection(struct st_command *command) int select_connection(struct st_command *command)
{ {
char *name;
char *p= command->first_argument; 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"); DBUG_ENTER("select_connection");
if (!*p) if (!*p)
die("Missing connection name in connect"); 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, check_command_args(command, command->first_argument, connection_args,
sizeof(connection_args)/sizeof(struct command_arg), sizeof(connection_args)/sizeof(struct command_arg),
','); ',');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment