mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
PT-2279 - Option --charset is confusing when set to utf8mb4
- Added pattern check for utf8 character set instead of eq - Added test cases
This commit is contained in:
18
t/pt-archiver/samples/pt-2279.sql
Normal file
18
t/pt-archiver/samples/pt-2279.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
DROP TABLE IF EXISTS test.table_1;
|
||||
DROP TABLE IF EXISTS test.table_1_dest;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
CREATE TABLE test.table_1 (
|
||||
id int(11) NOT NULL,
|
||||
c1 varchar(20) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO test.table_1 VALUES(1, 'I love MySQL! 🐬');
|
||||
|
||||
CREATE TABLE test.table_1_dest (
|
||||
id int(11) NOT NULL,
|
||||
c1 varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
Reference in New Issue
Block a user