Skip to content

Commit 3e8e3bd

Browse files
committed
WL#7554 Switch to new default character set and change mtr test cases
1 parent d330f98 commit 3e8e3bd

File tree

773 files changed

+6617
-4386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

773 files changed

+6617
-4386
lines changed

cmake/character_sets.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -15,11 +15,11 @@
1515

1616
# Charsets and collations
1717
IF(NOT DEFAULT_CHARSET)
18-
SET(DEFAULT_CHARSET "latin1")
18+
SET(DEFAULT_CHARSET "utf8mb4")
1919
ENDIF()
2020

2121
IF(NOT DEFAULT_COLLATION)
22-
SET(DEFAULT_COLLATION "latin1_swedish_ci")
22+
SET(DEFAULT_COLLATION "utf8mb4_0900_ai_ci")
2323
ENDIF()
2424

2525
IF(WITH_EXTRA_CHARSETS AND NOT WITH_EXTRA_CHARSETS STREQUAL "all")
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# perl mysql-test-run.pl --parallel=auto --force --max-test-fail=0 --retry=1 --retry-failure=1 --experimental=./collections/default.experimental --big-test --comment=utf8mb4
2+
# perl mysql-test-run.pl --parallel=auto --force --max-test-fail=0 --retry=1 --retry-failure=1 --experimental=./collections/default.experimental --big-test --comment=utf8mb4-extra --suite=collations,engines,funcs_2,interactive_utilities,jp,test_services,x,group_replication,memcached
3+
perl mysql-test-run.pl --debug-server --parallel=auto --force --max-test-fail=0 --retry=1 --retry-failure=1 --experimental=./collections/default.experimental --big-test --testcase-timeout=60 --suite-timeout=600 --comment=utf8mb4
4+
perl mysql-test-run.pl --debug-server --parallel=auto --force --max-test-fail=0 --retry=1 --retry-failure=1 --experimental=./collections/default.experimental --big-test --testcase-timeout=60 --suite-timeout=600 --comment=utf8mb4-extra --suite=collations,engines,funcs_2,interactive_utilities,jp,test_services,x,group_replication,memcached

mysql-test/extra/rpl_tests/check_type.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enable_warnings;
3333
eval CREATE TABLE t1(
3434
pk INT NOT NULL PRIMARY KEY,
3535
a $source_type
36-
) ENGINE=$engine_type;
36+
) ENGINE=$engine_type CHARACTER SET latin1;
3737
--source include/sync_slave_sql_with_master.inc
3838
eval ALTER TABLE t1 MODIFY a $target_type;
3939

mysql-test/extra/rpl_tests/rpl_binlog_max_cache_size.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ SET GLOBAL binlog_stmt_cache_size = 4096;
5454
disconnect master;
5555
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
5656

57-
CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
58-
CREATE TABLE t2(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=MyIsam;
59-
CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
57+
CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb CHARACTER SET latin1;
58+
CREATE TABLE t2(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=MyIsam CHARACTER SET latin1;
59+
CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb CHARACTER SET latin1;
6060

6161
let $data = `select concat('"', repeat('a',2000), '"')`;
6262

@@ -260,7 +260,7 @@ TRUNCATE TABLE t3;
260260

261261
DELIMITER //;
262262

263-
CREATE PROCEDURE p1(pd VARCHAR(30000))
263+
CREATE PROCEDURE p1(pd VARCHAR(30000) CHARACTER SET latin1)
264264
BEGIN
265265
INSERT INTO t1 (a, data) VALUES (1, pd);
266266
INSERT INTO t1 (a, data) VALUES (2, pd);

mysql-test/extra/rpl_tests/rpl_insert_id.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,14 @@ drop table t1;
301301
eval CREATE TABLE t1 (
302302
id bigint(20) unsigned NOT NULL auto_increment,
303303
field_1 int(10) unsigned NOT NULL,
304-
field_2 varchar(255) NOT NULL,
304+
field_2 varchar(249) NOT NULL,
305305
field_3 varchar(255) NOT NULL,
306306
PRIMARY KEY (id),
307307
UNIQUE KEY field_1 (field_1, field_2)
308308
) ENGINE=$engine_type;
309309
eval CREATE TABLE t2 (
310310
field_a int(10) unsigned NOT NULL,
311-
field_b varchar(255) NOT NULL,
311+
field_b varchar(249) NOT NULL,
312312
field_c varchar(255) NOT NULL
313313
) ENGINE=$engine_type;
314314
INSERT INTO t2 (field_a, field_b, field_c) VALUES (1, 'a', '1a');

mysql-test/include/func_aes_block.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ SET SESSION block_encryption_mode=DEFAULT;
7474
--echo #### 128, 192 and 256 bit $block_mode
7575

7676

77-
eval CREATE TABLE aes_$block_mode(a VARCHAR(128), b128 VARCHAR(144),
78-
b192 VARCHAR(144), b256 CHAR(144));
77+
eval CREATE TABLE aes_$block_mode(a VARBINARY(128), b128 VARBINARY(144),
78+
b192 VARBINARY(144), b256 BINARY(144));
7979
eval INSERT INTO aes_$block_mode (a) VALUES (REPEAT('a', 128));
8080
eval INSERT INTO aes_$block_mode (a) VALUES (REPEAT(0x00313233, 32));
8181

mysql-test/include/memcache_config.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
create database innodb_memcache;
1+
create database innodb_memcache character set latin1;
22

33
use innodb_memcache;
44

0 commit comments

Comments
 (0)