Commit a1aeaecc authored by unknown's avatar unknown

A fix for mysql client program when `use` or `connect` were used

without arguments ...


client/mysql.cc:
  A fix for bug #90
parent 310e5a4c
......@@ -2452,9 +2452,11 @@ char *get_arg(char *line, my_bool get_next_arg)
ptr++;
if (*ptr == '\\') // short command was used
ptr+= 2;
while (!my_isspace(system_charset_info, *ptr)) // skip command
while (*ptr &&!my_isspace(system_charset_info, *ptr)) // skip command
ptr++;
}
if (!*ptr)
return NullS;
while (my_isspace(system_charset_info, *ptr))
ptr++;
if (*ptr == '\'' || *ptr == '\"' || *ptr == '`')
......
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