1
0
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:
bar@bar.mysql.r18.ru
2003-05-28 13:54:18 +05:00
parent 7df5635ff2
commit 7ffcf6f64a
3 changed files with 12 additions and 1 deletions

View File

@ -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