mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
2fdb556e04
This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
27 lines
755 B
Text
27 lines
755 B
Text
FLUSH STATUS;
|
|
SHOW local STATUS LIKE 'com_select';
|
|
Variable_name Value
|
|
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='utf8mb3','OK', 'FAIL') AS RESULT;
|
|
RESULT
|
|
OK
|
|
SELECT IF(@@character_set_client='utf8mb3','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;
|