mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02: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:
parent
a6f032af57
commit
5058ced5df
34 changed files with 130 additions and 342 deletions
|
|
@ -12030,14 +12030,9 @@ static ulong parse_client_handshake_packet(MPVIO_EXT *mpvio,
|
|||
mostly for backward compatibility (to truncate long usernames, as
|
||||
old 5.1 did)
|
||||
*/
|
||||
{
|
||||
CHARSET_INFO *cs= system_charset_info;
|
||||
int err;
|
||||
|
||||
user_len= (uint) cs->cset->well_formed_len(cs, user, user + user_len,
|
||||
username_char_length, &err);
|
||||
user[user_len]= '\0';
|
||||
}
|
||||
user_len= Well_formed_prefix(system_charset_info, user, user_len,
|
||||
username_char_length).length();
|
||||
user[user_len]= '\0';
|
||||
|
||||
Security_context *sctx= thd->security_ctx;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue