| 391 | */ |
| 392 | |
| 393 | int find_string_in_array(LEX_CSTRING * const haystack, LEX_CSTRING * const needle, |
| 394 | CHARSET_INFO * const cs) |
| 395 | { |
| 396 | const LEX_CSTRING *pos; |
| 397 | for (pos= haystack; pos->str; pos++) |
| 398 | if (!cs->strnncollsp(pos->str, pos->length, |
| 399 | needle->str, needle->length)) |
| 400 | { |
| 401 | return (int)(pos - haystack); |
| 402 | } |
| 403 | return -1; |
| 404 | } |
| 405 | |
| 406 | |
| 407 | const char *set_to_string(THD *thd, LEX_CSTRING *result, ulonglong set, |
no test coverage detected