Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-30716 Wrong casefolding in xxx_unicode_520_ci for U+0700..U+07FF
The array my_unicase_pages_unicode520[7] erroneously mapped to plane06 instead of plane07.
- Loading branch information
Showing
39 changed files
with
25,102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--source include/have_utf32.inc | ||
--source include/have_ucs2.inc | ||
--source include/have_sequence.inc | ||
|
||
EXECUTE IMMEDIATE SFORMAT(' | ||
CREATE VIEW v_bmp AS | ||
SELECT | ||
seq AS codepoint, | ||
LPAD(HEX(seq),4,''0'') AS codepoint_hex4, | ||
CONVERT(CHAR(seq USING utf32) USING {}) COLLATE {} AS c | ||
FROM | ||
seq_0_to_65535', @@character_set_connection, @@collation_connection); | ||
|
||
SELECT COLLATION(c) FROM v_bmp LIMIT 1; | ||
|
||
SELECT | ||
codepoint_hex4, | ||
HEX(CAST(LOWER(c) AS CHAR CHARACTER SET ucs2)), | ||
HEX(CAST(UPPER(c) AS CHAR CHARACTER SET ucs2)) | ||
FROM v_bmp | ||
WHERE BINARY(c)<>BINARY(LOWER(c)) OR BINARY(c)<>BINARY(UPPER(c)); | ||
|
||
DROP VIEW v_bmp; |
22 changes: 22 additions & 0 deletions
22
mysql-test/include/ctype_unicode_casefold_supplementary.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--source include/have_utf32.inc | ||
--source include/have_sequence.inc | ||
|
||
EXECUTE IMMEDIATE SFORMAT(' | ||
CREATE VIEW v_supplementary AS | ||
SELECT | ||
seq AS codepoint, | ||
LPAD(HEX(seq),8,''0'') AS codepoint_hex8, | ||
CONVERT(CHAR(seq USING utf32) USING {}) COLLATE {} AS c | ||
FROM | ||
seq_65536_to_1114111', @@character_set_connection, @@collation_connection); | ||
|
||
SELECT COLLATION(c) FROM v_supplementary LIMIT 1; | ||
|
||
SELECT | ||
codepoint_hex8, | ||
HEX(CAST(LOWER(c) AS CHAR CHARACTER SET utf32)), | ||
HEX(CAST(UPPER(c) AS CHAR CHARACTER SET utf32)) | ||
FROM v_supplementary | ||
WHERE BINARY(c)<>BINARY(LOWER(c)) OR BINARY(c)<>BINARY(UPPER(c)); | ||
|
||
DROP VIEW v_supplementary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--source include/have_utf32.inc | ||
--source include/have_sequence.inc | ||
|
||
EXECUTE IMMEDIATE SFORMAT(' | ||
CREATE VIEW v_bmp AS | ||
SELECT | ||
seq AS codepoint, | ||
LPAD(HEX(seq),4,''0'') AS codepoint_hex4, | ||
CONVERT(CHAR(seq USING utf32) USING {}) COLLATE {} AS c | ||
FROM | ||
seq_0_to_65535', @@character_set_connection, @@collation_connection); | ||
|
||
SELECT COLLATION(c) FROM v_bmp LIMIT 1; | ||
|
||
SELECT HEX(codepoint) FROM v_bmp WHERE HEX(WEIGHT_STRING(c))='FFFD'; | ||
|
||
SELECT | ||
SUM(codepoint_hex4=HEX(WEIGHT_STRING(c))) AS count_bmp_weight_is_codepoint, | ||
SUM(codepoint_hex4<>HEX(WEIGHT_STRING(c))) AS count_bmp_weight_is_not_codepoint | ||
FROM v_bmp; | ||
|
||
SELECT codepoint_hex4,HEX(WEIGHT_STRING(c)) | ||
FROM v_bmp | ||
WHERE codepoint_hex4<>HEX(WEIGHT_STRING(c)); | ||
|
||
DROP VIEW v_bmp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--source include/have_utf32.inc | ||
--source include/have_sequence.inc | ||
|
||
EXECUTE IMMEDIATE SFORMAT(' | ||
CREATE VIEW v_supplementary AS | ||
SELECT | ||
seq AS codepoint, | ||
CONVERT(CHAR(seq USING utf32) USING {}) COLLATE {} AS c | ||
FROM | ||
seq_65536_to_1114111', @@character_set_connection, @@collation_connection); | ||
|
||
SELECT COLLATION(c) FROM v_supplementary LIMIT 1; | ||
|
||
SELECT | ||
SUM(HEX(WEIGHT_STRING(c))<>'FFFD'), | ||
SUM(HEX(WEIGHT_STRING(c))='FFFD') | ||
FROM v_supplementary; | ||
|
||
DROP VIEW v_supplementary; |
Oops, something went wrong.