Commit 851e6fe4 authored by unknown's avatar unknown

Use 'my_strnncoll_simple' instead of 'strncasecmp'

parent b35617cd
...@@ -3397,8 +3397,10 @@ int read_line(char *buf, int size) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment