1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

BUG#30472: libmysql doesn't reset charset, insert_id after

succ. mysql_change_user() call.

Use 2 bytes for character set number.
This commit is contained in:
anozdrin/alik@station.
2007-10-01 15:41:18 +04:00
parent 0635a75f4a
commit 7f554deb95
2 changed files with 13 additions and 4 deletions

View File

@ -736,8 +736,8 @@ my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
if (mysql->server_capabilities & CLIENT_SECURE_CONNECTION)
{
*end= (uchar) mysql->charset->number;
++end;
int2store(end, (ushort) mysql->charset->number);
end+= 2;
}
/* Write authentication package */