mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-7769 MY_CHARSET_INFO refactoring# On branch 10.2
Part 3 (final): removing MY_CHARSET_HANDLER::well_formed_len().
This commit is contained in:
@@ -9614,11 +9614,8 @@ bool check_string_char_length(LEX_STRING *str, uint err_msg,
|
||||
uint max_char_length, CHARSET_INFO *cs,
|
||||
bool no_error)
|
||||
{
|
||||
int well_formed_error;
|
||||
uint res= cs->cset->well_formed_len(cs, str->str, str->str + str->length,
|
||||
max_char_length, &well_formed_error);
|
||||
|
||||
if (!well_formed_error && str->length == res)
|
||||
Well_formed_prefix prefix(cs, str->str, str->length, max_char_length);
|
||||
if (!prefix.well_formed_error_pos() && str->length == prefix.length())
|
||||
return FALSE;
|
||||
|
||||
if (!no_error)
|
||||
|
||||
Reference in New Issue
Block a user