Use 'my_strnncoll_simple' instead of 'strncasecmp'
This commit is contained in:
parent
b35617cdba
commit
851e6fe44e
@ -3397,8 +3397,10 @@ int read_line(char *buf, int size)
|
|||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
else if ((c == '{' &&
|
else if ((c == '{' &&
|
||||||
(!strncasecmp(buf, "while", min(5, p - buf)) ||
|
(!my_strnncoll_simple(charset_info, "while", 5,
|
||||||
!strncasecmp(buf, "if", min(2, p - buf)))))
|
buf, min(5, p - buf), 0) ||
|
||||||
|
!my_strnncoll_simple(charset_info, "if", 2,
|
||||||
|
buf, min(2, p - buf), 0))))
|
||||||
{
|
{
|
||||||
/* Only if and while commands can be terminated by { */
|
/* Only if and while commands can be terminated by { */
|
||||||
*p++= c;
|
*p++= c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user