mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +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.
40 lines
No EOL
908 B
Text
40 lines
No EOL
908 B
Text
--source include/not_embedded.inc
|
|
|
|
FLUSH STATUS;
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
|
|
let $i = 10;
|
|
begin;
|
|
while ($i)
|
|
{
|
|
dec $i;
|
|
SELECT 1;
|
|
}
|
|
commit;
|
|
|
|
--enable_query_log
|
|
--enable_result_log
|
|
|
|
SHOW local STATUS LIKE 'com_select';
|
|
|
|
--reset_connection
|
|
|
|
SHOW local STATUS LIKE 'com_select';
|
|
|
|
--echo # 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;
|
|
--reset_connection
|
|
SELECT IF(@@character_set_client='utf8mb3','OK', 'FAIL') AS RESULT;
|
|
disconnect utf8_conn;
|
|
|
|
--echo # 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;
|
|
--reset_connection
|
|
SELECT IF(@@character_set_client='latin1','OK', 'FAIL') AS RESULT;
|
|
disconnect latin1_conn; |