mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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:
@ -5,3 +5,23 @@ Com_select 10
|
||||
SHOW local STATUS LIKE 'com_select';
|
||||
Variable_name Value
|
||||
Com_select 0
|
||||
# Test if charset changes after reset (utf8)
|
||||
connect utf8_conn,localhost,root,,,,,CHARSET=utf8;
|
||||
connection utf8_conn;
|
||||
SELECT IF(@@character_set_client='utf8','OK', 'FAIL') AS RESULT;
|
||||
RESULT
|
||||
OK
|
||||
SELECT IF(@@character_set_client='utf8','OK', 'FAIL') AS RESULT;
|
||||
RESULT
|
||||
OK
|
||||
disconnect utf8_conn;
|
||||
# Test if charset changes after reset (latin1)
|
||||
connect latin1_conn,localhost,root,,,,,CHARSET=latin1;
|
||||
connection latin1_conn;
|
||||
SELECT IF(@@character_set_client='latin1','OK', 'FAIL') AS RESULT;
|
||||
RESULT
|
||||
OK
|
||||
SELECT IF(@@character_set_client='latin1','OK', 'FAIL') AS RESULT;
|
||||
RESULT
|
||||
OK
|
||||
disconnect latin1_conn;
|
||||
|
Reference in New Issue
Block a user