Skip to content

Commit db2c8a2

Browse files
author
Shlomi Noach
committed
added update/delete tests for multi-charset/alter tests
1 parent 109ddb0 commit db2c8a2

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
drop table if exists gh_ost_test;
2+
create table gh_ost_test (
3+
id int auto_increment,
4+
t1 varchar(128) charset latin1 collate latin1_swedish_ci,
5+
t2 varchar(128) charset latin1 collate latin1_swedish_ci,
6+
tutf8 varchar(128) charset utf8,
7+
tutf8mb4 varchar(128) charset utf8mb4,
8+
random_value varchar(128) charset ascii,
9+
primary key(id)
10+
) auto_increment=1;
11+
12+
drop event if exists gh_ost_test;
13+
delimiter ;;
14+
create event gh_ost_test
15+
on schedule every 1 second
16+
starts current_timestamp
17+
ends current_timestamp + interval 60 second
18+
on completion not preserve
19+
enable
20+
do
21+
begin
22+
insert into gh_ost_test values (null, md5(rand()), md5(rand()), md5(rand()), md5(rand()), md5(rand()));
23+
insert into gh_ost_test values (null, 'átesting', 'átesting', 'átesting', 'átesting', md5(rand()));
24+
insert into gh_ost_test values (null, 'átesting_del', 'átesting', 'átesting', 'átesting', md5(rand()));
25+
insert into gh_ost_test values (null, 'testátest', 'testátest', 'testátest', '🍻😀', md5(rand()));
26+
update gh_ost_test set t1='átesting2' where t1='átesting' order by id desc limit 1;
27+
delete from gh_ost_test where t1='átesting_del' order by id desc limit 1;
28+
end ;;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--alter='MODIFY `t1` varchar(128) CHARACTER SET utf8mb4 NOT NULL, MODIFY `t2` varchar(128) CHARACTER SET latin2 NOT NULL, MODIFY `tutf8` varchar(128) CHARACTER SET latin1 NOT NULL'

0 commit comments

Comments
 (0)