From 13b17b93c432cc9ae6f061d29ba32be1fd8dda61 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Tue, 20 Nov 2018 19:35:03 +0200 Subject: [PATCH] testing: convert to character set utf8mb4 --- localtests/convert-utf8mb4/create.sql | 25 +++++++++++++++++++++++++ localtests/convert-utf8mb4/extra_args | 1 + 2 files changed, 26 insertions(+) create mode 100644 localtests/convert-utf8mb4/create.sql create mode 100644 localtests/convert-utf8mb4/extra_args diff --git a/localtests/convert-utf8mb4/create.sql b/localtests/convert-utf8mb4/create.sql new file mode 100644 index 0000000..cf36d5f --- /dev/null +++ b/localtests/convert-utf8mb4/create.sql @@ -0,0 +1,25 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + t varchar(128) charset utf8 collate utf8_general_ci, + ta varchar(128) charset ascii not null, + primary key(id) +) auto_increment=1; + +drop event if exists gh_ost_test; +delimiter ;; +create event gh_ost_test + on schedule every 1 second + starts current_timestamp + ends current_timestamp + interval 60 second + on completion not preserve + enable + do +begin + insert into gh_ost_test values (null, md5(rand()), 'a'); + insert into gh_ost_test values (null, 'novo proprietário', 'b'); + insert into gh_ost_test values (null, 'usuário', 'c'); + insert into gh_ost_test values (null, 'usuário', 'x'); + + delete from gh_ost_test where ta='x' order by id desc limit 1; +end ;; diff --git a/localtests/convert-utf8mb4/extra_args b/localtests/convert-utf8mb4/extra_args new file mode 100644 index 0000000..2b2f64d --- /dev/null +++ b/localtests/convert-utf8mb4/extra_args @@ -0,0 +1 @@ +--alter='convert to character set utf8mb4'