gh-ost/localtests/fail-drop-gho-table/create.sql
2019-08-01 15:13:08 +03:00

23 lines
488 B
SQL

drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
color varchar(32),
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, 1, 'blue');
drop table if exists _gh_ost_test_gho;
end ;;