1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-25829 Change default Unicode collation to uca1400_ai_ci

Step#3 The main patch
This commit is contained in:
Alexander Barkov
2023-11-02 14:16:09 +04:00
parent a3117c7983
commit 903b5d6a83
319 changed files with 6376 additions and 3344 deletions

View File

@ -414,6 +414,24 @@ select json_object('foo', json_unquote(json_object('bar', c)),'qux', c) as fld f
fld
{"foo": "{\"bar\": \"abc\"}", "qux": "abc"}
{"foo": "{\"bar\": \"def\"}", "qux": "def"}
select json_unquote(json_object('bar', c)) as c1 from t1;
c1
{"bar": "abc"}
{"bar": "def"}
select
collation(json_unquote(json_object('bar', c))) as coll_json_unquote,
coercibility(json_unquote(json_object('bar', c))) as coer_json_unquote,
coercibility('bar') as coer_literal
from t1 limit 1;
coll_json_unquote coer_json_unquote coer_literal
utf8mb3_general_ci 4 5
create table t2 as select json_object('foo', json_unquote(json_object('bar', c)),'qux', c) as fld from t1 limit 0;
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`fld` varchar(39) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
drop table t2;
drop table t1;
select json_object("a", json_object("b", "abcd"));
json_object("a", json_object("b", "abcd"))