mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-18281 COM_RESET_CONNECTION changes the connection encoding
Store original charset during client authentication, and restore it for COM_RESET_CONNECTION
This commit is contained in:
@ -1715,6 +1715,9 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
thd->status_var.com_other++;
|
||||
thd->change_user();
|
||||
thd->clear_error(); // if errors from rollback
|
||||
/* Restore original charset from client authentication packet.*/
|
||||
if(thd->org_charset)
|
||||
thd->update_charset(thd->org_charset,thd->org_charset,thd->org_charset);
|
||||
my_ok(thd, 0, 0, 0);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user