|
| 1 | +drop table if exists gh_ost_test; |
| 2 | +create table gh_ost_test ( |
| 3 | + id bigint(20) NOT NULL AUTO_INCREMENT, |
| 4 | + column1 int(11) NOT NULL, |
| 5 | + column2 smallint(5) unsigned NOT NULL, |
| 6 | + column3 mediumint(8) unsigned NOT NULL, |
| 7 | + column4 tinyint(3) unsigned NOT NULL, |
| 8 | + column5 int(11) NOT NULL, |
| 9 | + column6 int(11) NOT NULL, |
| 10 | + PRIMARY KEY (id), |
| 11 | + KEY c12_ix (column1, column2) |
| 12 | +) auto_increment=1; |
| 13 | + |
| 14 | +drop event if exists gh_ost_test; |
| 15 | +delimiter ;; |
| 16 | +create event gh_ost_test |
| 17 | + on schedule every 1 second |
| 18 | + starts current_timestamp |
| 19 | + ends current_timestamp + interval 60 second |
| 20 | + on completion not preserve |
| 21 | + enable |
| 22 | + do |
| 23 | +begin |
| 24 | + -- mediumint maxvalue: 16777215 (unsigned), 8388607 (signed) |
| 25 | + insert into gh_ost_test values (NULL, 13382498, 536, 8388607, 3, 1483892217, 1483892218); |
| 26 | + insert into gh_ost_test values (NULL, 13382498, 536, 8388607, 250, 1483892217, 1483892218); |
| 27 | + insert into gh_ost_test values (NULL, 13382498, 536, 10000000, 3, 1483892217, 1483892218); |
| 28 | +end ;; |
0 commit comments