Skip to content

Commit

Permalink
Update and add localtests for new logic
Browse files Browse the repository at this point in the history
  • Loading branch information
htmsousa committed Jan 4, 2025
1 parent 13a8035 commit 1471d6c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions localtests/fail-no-shared-uk/create.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
id int not null,
i int not null,
ts timestamp,
primary key(id)
) auto_increment=1;
);

drop event if exists gh_ost_test;
delimiter ;;
Expand Down
2 changes: 1 addition & 1 deletion localtests/fail-no-shared-uk/extra_args
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--alter="drop primary key, add primary key (id, i)"
--alter="drop primary key, add primary key (i)"
22 changes: 22 additions & 0 deletions localtests/shared-uk/create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
ts timestamp,
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, 11, now());
insert into gh_ost_test values (null, 13, now());
insert into gh_ost_test values (null, 17, now());
end ;;
1 change: 1 addition & 0 deletions localtests/shared-uk/extra_args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--alter="drop primary key, add primary key (id, i)"

0 comments on commit 1471d6c

Please sign in to comment.