mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
BUG#14358: in mysql.cc, don't neglect to strip delimiter off lines < 9 characters long.
client/mysql.cc: BUG#14358: don't neglect to strip delimiter off lines < 9 characters long.
This commit is contained in:
@@ -1133,10 +1133,11 @@ static COMMANDS *find_command(char *name,char cmd_char)
|
|||||||
parsing the row and calling find_command()
|
parsing the row and calling find_command()
|
||||||
*/
|
*/
|
||||||
if (strstr(name, "\\g") || (strstr(name, delimiter) &&
|
if (strstr(name, "\\g") || (strstr(name, delimiter) &&
|
||||||
strlen(name) >= 9 &&
|
!(strlen(name) >= 9 &&
|
||||||
my_strnncoll(charset_info,(uchar*) name,
|
!my_strnncoll(charset_info,
|
||||||
9,
|
(uchar*) name, 9,
|
||||||
(const uchar*) "delimiter", 9)))
|
(const uchar*) "delimiter",
|
||||||
|
9))))
|
||||||
DBUG_RETURN((COMMANDS *) 0);
|
DBUG_RETURN((COMMANDS *) 0);
|
||||||
if ((end=strcont(name," \t")))
|
if ((end=strcont(name," \t")))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user