1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-19123 Change default charset from latin1 to utf8mb4

Changing the default server character set from latin1 to utf8mb4.
This commit is contained in:
Alexander Barkov
2024-05-28 09:08:51 +04:00
parent a2a5ba14a8
commit 36eba98817
1713 changed files with 31563 additions and 30549 deletions

View File

@ -13,16 +13,16 @@ id str
3 foo
explain select * from t1 where str is null;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref str str 11 const 2 Using index condition
1 SIMPLE t1 ref str str 41 const 2 Using index condition
explain select * from t1 where str="foo";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const str str 11 const 1
1 SIMPLE t1 const str str 41 const 1
explain select * from t1 ignore key (str) where str="foo";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
explain select * from t1 use key (str,str) where str="foo";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const str str 11 const 1
1 SIMPLE t1 const str str 41 const 1
explain select * from t1 use key (str,str,foo) where str="foo";
ERROR 42000: Key 'foo' doesn't exist in table 't1'
explain select * from t1 ignore key (str,str,foo) where str="foo";
@ -363,9 +363,9 @@ id select_type table type possible_keys key key_len ref rows Extra
INSERT into t1 values('test1'),('test2'),('test3'),('test4'),('test5');
EXECUTE stmt;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 index NULL unique 8 NULL 6 Using index
1 PRIMARY t1 index NULL unique 26 NULL 6 Using index
2 SUBQUERY t1 fulltext unique,fulltext fulltext 0 1 Using where
2 SUBQUERY a index NULL unique 8 NULL 6 Using index
2 SUBQUERY a index NULL unique 26 NULL 6 Using index
DEALLOCATE PREPARE stmt;
DROP TABLE t1;
End of 5.1 tests.