| 2338 | */ |
| 2339 | |
| 2340 | bool check_string_byte_length(LEX_STRING *str, const char *err_msg, |
| 2341 | uint max_byte_length) |
| 2342 | { |
| 2343 | if (str->length <= max_byte_length) |
| 2344 | return FALSE; |
| 2345 | |
| 2346 | my_error(ER_WRONG_STRING_LENGTH, MYF(0), str->str, err_msg, max_byte_length); |
| 2347 | |
| 2348 | return TRUE; |
| 2349 | } |
| 2350 | |
| 2351 | |
| 2352 | /* |
no test coverage detected