mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 15:33:49 +00:00
PT-2123 wide character in print for pt archiver (#583)
* PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias Added check if source DSN has character set UTF specified while option --charset is not provided In this case it is safe to open bulk insert data file in utf8 mode. * PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias Removed unrelated row in t/pt-archiver/samples/pt-2123.sql * PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias util/update-modules for pt-archiver
This commit is contained in:
20
t/pt-archiver/samples/pt-2123.sql
Normal file
20
t/pt-archiver/samples/pt-2123.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
SET NAMES utf8mb4;
|
||||
DROP DATABASE IF EXISTS pt_2123;
|
||||
CREATE DATABASE pt_2123;
|
||||
|
||||
CREATE TABLE `pt_2123`.`t1` (
|
||||
`col1` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`col2` varchar(3) DEFAULT NULL,
|
||||
PRIMARY KEY (`col1`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `pt_2123`.`t2` (
|
||||
`col1` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`col2` varchar(3) DEFAULT NULL,
|
||||
PRIMARY KEY (`col1`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
insert into pt_2123.t1 (col2) values ('あ');
|
||||
insert into pt_2123.t1 (col2) values ('あ');
|
||||
insert into pt_2123.t1 (col2) values ('あ');
|
||||
insert into pt_2123.t1 (col2) values ('あ');
|
Reference in New Issue
Block a user