1+ drop table if exists gh_ost_test;
2+ create table gh_ost_test (
3+ id int auto_increment,
4+ signed_value bigint not null ,
5+ unsigned_value int unsigned not null ,
6+ unsigned_big_value bigint unsigned not null ,
7+ primary key (id)
8+ ) auto_increment= 1 ;
9+
10+ insert into gh_ost_test (signed_value, unsigned_value, unsigned_big_value) values
11+ (- 9223372036854775807 , 4294967295 , 18446744073709551615 ),
12+ (- 9223372036854775806 , 4294967294 , 18446744073709551614 ),
13+ (- 9223372036854775805 , 4294967293 , 18446744073709551613 );
14+
15+ drop event if exists gh_ost_test;
16+ delimiter ;;
17+ create event gh_ost_test
18+ on schedule every 1 second
19+ starts current_timestamp
20+ ends current_timestamp + interval 60 second
21+ on completion not preserve
22+ enable
23+ do
24+ begin
25+ insert into gh_ost_test (signed_value, unsigned_value, unsigned_big_value) values
26+ (- 9223372036854775804 , 4294967292 , 18446744073709551612 );
27+ update gh_ost_test
28+ set signed_value= signed_value+ 1 ,
29+ unsigned_value= unsigned_value- 1 ,
30+ unsigned_big_value= unsigned_big_value- 1
31+ where id <= 3 ;
32+ end ;;
0 commit comments