1
0
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.

This commit is contained in:
tim@siva.hindu.god
2005-10-28 12:13:34 +13:00
parent a9b1ff4095
commit c704130389

View File

@@ -1133,10 +1133,11 @@ static COMMANDS *find_command(char *name,char cmd_char)
parsing the row and calling find_command()
*/
if (strstr(name, "\\g") || (strstr(name, delimiter) &&
strlen(name) >= 9 &&
my_strnncoll(charset_info,(uchar*) name,
9,
(const uchar*) "delimiter", 9)))
!(strlen(name) >= 9 &&
!my_strnncoll(charset_info,
(uchar*) name, 9,
(const uchar*) "delimiter",
9))))
DBUG_RETURN((COMMANDS *) 0);
if ((end=strcont(name," \t")))
{