Skip to content

Commit f9de14b

Browse files
author
Xing Zhang
committed
Bug #25562487: SOME TESTS IN MAIN SUITE FAIL WHEN CHANGING DEFAULT CHARSET
Following tests in main suite fail when changing default charset: main.mysqltest main.join_nested_bka main.join_nested_bka_nixbnl Fix: Change to use explicit charset and record test results. Change-Id: I492cceda2dac33fd25bab0694f953fec2f088059
1 parent 3b1cdfe commit f9de14b

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

mysql-test/r/join_nested_bka.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ DROP TABLE t1,t2,t3;
23172317
CREATE TABLE t1 (
23182318
carrier char(2) default NULL,
23192319
id int NOT NULL auto_increment PRIMARY KEY
2320-
);
2320+
) CHARSET utf8mb4;
23212321
INSERT INTO t1 VALUES
23222322
('CO',235371754),('CO',235376554),('CO',235376884),('CO',235377874),
23232323
('CO',231060394),('CO',231059224),('CO',231059314),('CO',231060484),
@@ -2382,7 +2382,7 @@ CREATE TABLE t4 (
23822382
carrier char(2) NOT NULL default '' PRIMARY KEY,
23832383
id int(11) default NULL,
23842384
INDEX id(id)
2385-
);
2385+
) CHARSET utf8mb4;
23862386
INSERT INTO t4 VALUES
23872387
('99',6),('SK',456),('UA',486),('AI',1081),('OS',1111),('VS',1510);
23882388
CREATE TABLE t5 (
@@ -2413,7 +2413,7 @@ ON t4.carrier = t1.carrier;
24132413
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
24142414
1 SIMPLE t2 NULL index package_id package_id 5 NULL 45 100.00 Using where; Using index
24152415
1 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.package_id 1 100.00 Using join buffer (Batched Key Access)
2416-
1 SIMPLE t4 NULL eq_ref PRIMARY,id PRIMARY 2 test.t1.carrier 1 100.00 NULL
2416+
1 SIMPLE t4 NULL eq_ref PRIMARY,id PRIMARY 8 test.t1.carrier 1 100.00 NULL
24172417
1 SIMPLE t5 NULL ref carrier_id carrier_id 5 test.t4.id 22 100.00 Using index
24182418
1 SIMPLE t3 NULL ref package_id package_id 5 test.t2.package_id 1 100.00 Using index
24192419
Warnings:

mysql-test/r/join_nested_bka_nixbnl.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ DROP TABLE t1,t2,t3;
23172317
CREATE TABLE t1 (
23182318
carrier char(2) default NULL,
23192319
id int NOT NULL auto_increment PRIMARY KEY
2320-
);
2320+
) CHARSET utf8mb4;
23212321
INSERT INTO t1 VALUES
23222322
('CO',235371754),('CO',235376554),('CO',235376884),('CO',235377874),
23232323
('CO',231060394),('CO',231059224),('CO',231059314),('CO',231060484),
@@ -2382,7 +2382,7 @@ CREATE TABLE t4 (
23822382
carrier char(2) NOT NULL default '' PRIMARY KEY,
23832383
id int(11) default NULL,
23842384
INDEX id(id)
2385-
);
2385+
) CHARSET utf8mb4;
23862386
INSERT INTO t4 VALUES
23872387
('99',6),('SK',456),('UA',486),('AI',1081),('OS',1111),('VS',1510);
23882388
CREATE TABLE t5 (
@@ -2413,7 +2413,7 @@ ON t4.carrier = t1.carrier;
24132413
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
24142414
1 SIMPLE t2 NULL index package_id package_id 5 NULL 45 100.00 Using where; Using index
24152415
1 SIMPLE t1 NULL eq_ref PRIMARY PRIMARY 4 test.t2.package_id 1 100.00 Using join buffer (Batched Key Access)
2416-
1 SIMPLE t4 NULL eq_ref PRIMARY,id PRIMARY 2 test.t1.carrier 1 100.00 NULL
2416+
1 SIMPLE t4 NULL eq_ref PRIMARY,id PRIMARY 8 test.t1.carrier 1 100.00 NULL
24172417
1 SIMPLE t5 NULL ref carrier_id carrier_id 5 test.t4.id 22 100.00 Using index
24182418
1 SIMPLE t3 NULL ref package_id package_id 5 test.t2.package_id 1 100.00 Using index
24192419
Warnings:

mysql-test/r/mysqltest.result

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ var3 two columns with same name
373373
var4 from query that returns NULL
374374
var5 from query that returns no row
375375
failing query in let
376-
create table t1 (a varchar(100));
376+
create table t1 (a varchar(100)) charset utf8mb4;
377377
insert into t1 values ('`select 42`');
378378
`select 42`
379379
insert into t1 values ('$dollar');
380-
$dollar
381380
`select 42`
381+
$dollar
382382
drop table t1;
383383
mysqltest: At line 1: query 'let $var2= `failing query`' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing query' at line 1
384384
mysqltest: At line 1: Missing required argument 'filename' to command 'source'
@@ -1206,15 +1206,15 @@ DROP TABLE t1;
12061206
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
12071207
COUNT(*)
12081208
0
1209-
CREATE /*! TEMPORARY */ TABLE t1 /* shouldn't fail */ (a INT);
1209+
CREATE /*! TEMPORARY */ TABLE t1 /* shouldn't fail */ (a INT) CHARSET utf8mb4;
12101210
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
12111211
COUNT(*)
12121212
1
12131213
SHOW CREATE TABLE t1;
12141214
Table Create Table
12151215
t1 CREATE TEMPORARY TABLE `t1` (
12161216
`a` int(11) DEFAULT NULL
1217-
) ENGINE=InnoDB DEFAULT CHARSET=latin1
1217+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
12181218
DROP TEMPORARY TABLE t1;
12191219
#
12201220
# Bug#21048973 : SUPPORT "--ERROR CR_..." FOR COMMUNICATION RELATED ERRORS

mysql-test/t/join_nested.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ DROP TABLE t1,t2,t3;
15011501
CREATE TABLE t1 (
15021502
carrier char(2) default NULL,
15031503
id int NOT NULL auto_increment PRIMARY KEY
1504-
);
1504+
) CHARSET utf8mb4;
15051505
INSERT INTO t1 VALUES
15061506
('CO',235371754),('CO',235376554),('CO',235376884),('CO',235377874),
15071507
('CO',231060394),('CO',231059224),('CO',231059314),('CO',231060484),
@@ -1569,7 +1569,7 @@ CREATE TABLE t4 (
15691569
carrier char(2) NOT NULL default '' PRIMARY KEY,
15701570
id int(11) default NULL,
15711571
INDEX id(id)
1572-
);
1572+
) CHARSET utf8mb4;
15731573
INSERT INTO t4 VALUES
15741574
('99',6),('SK',456),('UA',486),('AI',1081),('OS',1111),('VS',1510);
15751575

mysql-test/t/mysqltest.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ let $var2= `failing query`;
10231023
echo $var2;
10241024
EOF
10251025

1026-
create table t1 (a varchar(100));
1026+
create table t1 (a varchar(100)) charset utf8mb4;
10271027
insert into t1 values ('`select 42`');
10281028
let $a= `select * from t1`;
10291029
# This should output `select 42`, not evaluate it again to 42
@@ -3237,7 +3237,7 @@ DROP TABLE t1;
32373237
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
32383238

32393239
# Should create a temporary table
3240-
CREATE /*! TEMPORARY */ TABLE t1 /* shouldn't fail */ (a INT);
3240+
CREATE /*! TEMPORARY */ TABLE t1 /* shouldn't fail */ (a INT) CHARSET utf8mb4;
32413241

32423242
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
32433243
SHOW CREATE TABLE t1;

0 commit comments

Comments
 (0)