Skip to content

Commit ca1b745

Browse files
author
Tor Didriksen
committed
Bug#25474239 MISC MTR TESTS FAIL WHEN CHANGING DEFAULT CHARACTER SET FOR DATABASE
Patch #7 To repeat: ./mtr --charset-for-testdb=utf8mb4 --defaults-file=include/utf8mb4_my.cnf group_by handler_read key key-bug17665767 subquery type_timestamp type_timestamp2 type_timestamp_explicit Change-Id: I3539cc62ba90b7b35658f1214fd7f3769b740de6
1 parent 8c4c285 commit ca1b745

File tree

8 files changed

+182
-170
lines changed

8 files changed

+182
-170
lines changed

mysql-test/r/group_by.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,7 @@ CREATE TABLE t1 (
29442944
a int,
29452945
b varchar(1),
29462946
KEY (b,a)
2947-
);
2947+
) charset utf8mb4;
29482948
INSERT INTO t1 VALUES (1,NULL),(0,'a'),(1,NULL),(0,'a');
29492949
INSERT INTO t1 VALUES (1,'a'),(0,'a'),(1,'a'),(0,'a');
29502950
ANALYZE TABLE t1;
@@ -2953,7 +2953,7 @@ test.t1 analyze status OK
29532953

29542954
EXPLAIN SELECT SQL_BUFFER_RESULT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
29552955
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2956-
1 SIMPLE t1 NULL range b b 9 NULL 2 100.00 Using where; Using index for group-by; Using temporary
2956+
1 SIMPLE t1 NULL range b b 12 NULL 2 100.00 Using where; Using index for group-by; Using temporary
29572957
Warnings:
29582958
Note 1003 /* select#1 */ select sql_buffer_result min(`test`.`t1`.`a`) AS `MIN(a)`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` = 'a') group by `test`.`t1`.`b`
29592959

@@ -2963,7 +2963,7 @@ MIN(a) b
29632963

29642964
EXPLAIN SELECT MIN(a), b FROM t1 WHERE t1.b = 'a' GROUP BY b;
29652965
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2966-
1 SIMPLE t1 NULL range b b 9 NULL 2 100.00 Using where; Using index for group-by
2966+
1 SIMPLE t1 NULL range b b 12 NULL 2 100.00 Using where; Using index for group-by
29672967
Warnings:
29682968
Note 1003 /* select#1 */ select min(`test`.`t1`.`a`) AS `MIN(a)`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` = 'a') group by `test`.`t1`.`b`
29692969

0 commit comments

Comments
 (0)