mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
"mysql" now sends client character set to server.
This commit is contained in:
@ -664,8 +664,17 @@ check_connections(THD *thd)
|
||||
thd->max_client_packet_length= uint4korr(net->read_pos+4);
|
||||
if (!(thd->variables.character_set_client=
|
||||
get_charset((uint) net->read_pos[8], MYF(0))))
|
||||
{
|
||||
thd->variables.character_set_client=
|
||||
global_system_variables.character_set_client;
|
||||
thd->variables.collation_connection=
|
||||
global_system_variables.collation_connection;
|
||||
}
|
||||
else
|
||||
{
|
||||
thd->variables.collation_connection=
|
||||
thd->variables.character_set_client;
|
||||
}
|
||||
end= (char*) net->read_pos+32;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user