Skip to content

Commit 163ac07

Browse files
author
Alexander Barkov
committed
MDEV-12020 ctype tests are non-deterministic due to missing sorting
1 parent abe6aca commit 163ac07

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

mysql-test/r/ctype_utf8.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10494,7 +10494,7 @@ DELETE FROM t1;
1049410494
LOAD DATA INFILE '../../std_data/loaddata/mdev9824.txt' INTO TABLE t1 CHARACTER SET utf8 LINES TERMINATED BY 'ёё' IGNORE 1 LINES;
1049510495
Warnings:
1049610496
Warning 1638 Non-ASCII separator arguments are not fully supported
10497-
SELECT c1 FROM t1;
10497+
SELECT c1 FROM t1 ORDER BY c1;
1049810498
c1
1049910499
b
1050010500
c

mysql-test/r/ctype_utf8mb4.result

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,16 +2323,16 @@ insert into t1 values (0xF0BFBFBF);
23232323
insert into t1 values (0xF08F8080);
23242324
Warnings:
23252325
Warning 1366 Incorrect string value: '\xF0\x8F\x80\x80' for column 'utf8mb4' at row 1
2326-
select hex(utf8mb4) from t1;
2326+
select hex(utf8mb4) from t1 order by binary utf8mb4;
23272327
hex(utf8mb4)
2328+
3F
23282329
F0908080
23292330
F0BFBFBF
2330-
3F
23312331
delete from t1;
23322332
Testing [F2..F3][80..BF][80..BF][80..BF]
23332333
insert into t1 values (0xF2808080);
23342334
insert into t1 values (0xF2BFBFBF);
2335-
select hex(utf8mb4) from t1;
2335+
select hex(utf8mb4) from t1 order by binary utf8mb4;
23362336
hex(utf8mb4)
23372337
F2808080
23382338
F2BFBFBF
@@ -2343,11 +2343,11 @@ insert into t1 values (0xF48F8080);
23432343
insert into t1 values (0xF4908080);
23442344
Warnings:
23452345
Warning 1366 Incorrect string value: '\xF4\x90\x80\x80' for column 'utf8mb4' at row 1
2346-
select hex(utf8mb4) from t1;
2346+
select hex(utf8mb4) from t1 order by binary utf8mb4;
23472347
hex(utf8mb4)
2348+
3F
23482349
F4808080
23492350
F48F8080
2350-
3F
23512351
drop table t1;
23522352
#
23532353
# Check strnxfrm() with odd length

mysql-test/t/ctype_utf8.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ LOAD DATA INFILE '../../std_data/loaddata/mdev9824.txt' INTO TABLE t1 CHARACTER
20002000
SELECT c1 FROM t1;
20012001
DELETE FROM t1;
20022002
LOAD DATA INFILE '../../std_data/loaddata/mdev9824.txt' INTO TABLE t1 CHARACTER SET utf8 LINES TERMINATED BY 'ёё' IGNORE 1 LINES;
2003-
SELECT c1 FROM t1;
2003+
SELECT c1 FROM t1 ORDER BY c1;
20042004
DROP TABLE t1;
20052005

20062006
--echo #

mysql-test/t/ctype_utf8mb4.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,20 +1491,20 @@ create table t1 (utf8mb4 char(1) character set utf8mb4);
14911491
insert into t1 values (0xF0908080);
14921492
insert into t1 values (0xF0BFBFBF);
14931493
insert into t1 values (0xF08F8080);
1494-
select hex(utf8mb4) from t1;
1494+
select hex(utf8mb4) from t1 order by binary utf8mb4;
14951495
delete from t1;
14961496

14971497
--echo Testing [F2..F3][80..BF][80..BF][80..BF]
14981498
insert into t1 values (0xF2808080);
14991499
insert into t1 values (0xF2BFBFBF);
1500-
select hex(utf8mb4) from t1;
1500+
select hex(utf8mb4) from t1 order by binary utf8mb4;
15011501
delete from t1;
15021502

15031503
--echo Testing [F4][80..8F][80..BF][80..BF]
15041504
insert into t1 values (0xF4808080);
15051505
insert into t1 values (0xF48F8080);
15061506
insert into t1 values (0xF4908080);
1507-
select hex(utf8mb4) from t1;
1507+
select hex(utf8mb4) from t1 order by binary utf8mb4;
15081508
drop table t1;
15091509

15101510

0 commit comments

Comments
 (0)