mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#751 Error message construction, backport
This commit is contained in:
@ -7761,7 +7761,10 @@ bool check_string_char_length(LEX_STRING *str, const char *err_msg,
|
||||
return FALSE;
|
||||
|
||||
if (!no_error)
|
||||
my_error(ER_WRONG_STRING_LENGTH, MYF(0), str->str, err_msg, max_char_length);
|
||||
{
|
||||
ErrConvString err(str->str, str->length, cs);
|
||||
my_error(ER_WRONG_STRING_LENGTH, MYF(0), err.ptr(), err_msg, max_char_length);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user