MDEV-36361 Wrong utf8mb4_0900_bin alias for utf8mb4_bin (should be utf8mb4_nopad_bin)

`mtr --view ctype_utf8mb4_0900` failed after this commit:

commit 3bbe11acd9
    MDEV-20912 Add support for utf8mb4_0900_* collations in MariaDB Server

(Note, this commit was also pushed with a wrong MDEV in the commit comment)

This patch changes ctype_utf8mb4_0900.test to work with and without --view.
This commit is contained in:
Alexander Barkov 2025-03-31 18:07:15 +04:00
parent d9ff22063a
commit 8a05f45bc3
2 changed files with 15 additions and 5 deletions

View File

@ -206,8 +206,13 @@ FROM information_schema.collations
WHERE collation_name='utf8mb4_0900_bin';
collation_name id comment
utf8mb4_0900_bin 309 Alias for utf8mb4_nopad_bin
SET NAMES utf8mb4 COLLATE utf8mb4_0900_bin;
SELECT 'a\t'<'a' AS c1;
c1
CREATE TABLE t1 (
a VARCHAR(32),
b VARCHAR(32)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin;
INSERT INTO t1 VALUES ('a\t', 'a');
SELECT a<b FROM t1;
a<b
0
DROP TABLE t1;
# End of 11.4 tests

View File

@ -92,7 +92,12 @@ SELECT collation_name, id, comment
FROM information_schema.collations
WHERE collation_name='utf8mb4_0900_bin';
SET NAMES utf8mb4 COLLATE utf8mb4_0900_bin;
SELECT 'a\t'<'a' AS c1;
CREATE TABLE t1 (
a VARCHAR(32),
b VARCHAR(32)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin;
INSERT INTO t1 VALUES ('a\t', 'a');
SELECT a<b FROM t1;
DROP TABLE t1;
--echo # End of 11.4 tests