mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
A fix for mysql client program when use
or connect
were used
without arguments ...
This commit is contained in:
@@ -2452,9 +2452,11 @@ char *get_arg(char *line, my_bool get_next_arg)
|
|||||||
ptr++;
|
ptr++;
|
||||||
if (*ptr == '\\') // short command was used
|
if (*ptr == '\\') // short command was used
|
||||||
ptr+= 2;
|
ptr+= 2;
|
||||||
while (!my_isspace(system_charset_info, *ptr)) // skip command
|
while (*ptr &&!my_isspace(system_charset_info, *ptr)) // skip command
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
if (!*ptr)
|
||||||
|
return NullS;
|
||||||
while (my_isspace(system_charset_info, *ptr))
|
while (my_isspace(system_charset_info, *ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
if (*ptr == '\'' || *ptr == '\"' || *ptr == '`')
|
if (*ptr == '\'' || *ptr == '\"' || *ptr == '`')
|
||||||
|
Reference in New Issue
Block a user