testing: convert to character set utf8mb4

This commit is contained in:
Shlomi Noach 2018-11-20 19:35:03 +02:00
parent 2d9d602729
commit 13b17b93c4
2 changed files with 26 additions and 0 deletions

View File

@ -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 ;;

View File

@ -0,0 +1 @@
--alter='convert to character set utf8mb4'