mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02: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:
parent
fd0ed478d3
commit
cca1114f0e
1 changed files with 5 additions and 4 deletions
|
|
@ -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")))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue