File: codepoint_order.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (24 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--source suite/collations/include/unicode.inc

insert into unicode values
       (0x30001, _utf32 0x30001,  'In Plane 3', 'Cn'),
       (0x40001, _utf32 0x40001,  'In Plane 4', 'Cn'),
       (0x50001, _utf32 0x50001,  'In Plane 5', 'Cn'),
       (0x60001, _utf32 0x60001,  'In Plane 6', 'Cn'),
       (0x70001, _utf32 0x70001,  'In Plane 7', 'Cn'),
       (0x80001, _utf32 0x80001,  'In Plane 8', 'Cn'),
       (0x90001, _utf32 0x90001,  'In Plane 9', 'Cn'),
       (0xA0001, _utf32 0xA0001,  'In Plane 10','Cn'),
       (0xB0001, _utf32 0xB0001,  'In Plane 11','Cn'),
       (0xC0001, _utf32 0xC0001,  'In Plane 12','Cn'),
       (0xD0001, _utf32 0xD0001,  'In Plane 13','Cn'),
       (0xF0001, _utf32 0xF0001,  'In Plane 15','Cn'),
       (0x100001 ,_utf32 0x100001,'In Plane 16','Cn');


select hex(convert(uc using utf32)),
       hex(weight_string(convert(uc using utf8mb4) collate utf8mb4_0900_bin)),
       name from unicode
order by uc  collate utf8mb4_0900_bin, cp;

drop table if exists unicode;