diff --git a/localtests/fail-no-shared-uk/create.sql b/localtests/fail-no-shared-uk/create.sql index 5bb45f2a3..8f092e790 100644 --- a/localtests/fail-no-shared-uk/create.sql +++ b/localtests/fail-no-shared-uk/create.sql @@ -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 ;; diff --git a/localtests/fail-no-shared-uk/extra_args b/localtests/fail-no-shared-uk/extra_args index 379a77d85..6f66ccdb9 100644 --- a/localtests/fail-no-shared-uk/extra_args +++ b/localtests/fail-no-shared-uk/extra_args @@ -1 +1 @@ ---alter="drop primary key, add primary key (id, i)" +--alter="drop primary key, add primary key (i)" diff --git a/localtests/shared-uk/create.sql b/localtests/shared-uk/create.sql new file mode 100644 index 000000000..5bb45f2a3 --- /dev/null +++ b/localtests/shared-uk/create.sql @@ -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 ;; diff --git a/localtests/shared-uk/extra_args b/localtests/shared-uk/extra_args new file mode 100644 index 000000000..379a77d85 --- /dev/null +++ b/localtests/shared-uk/extra_args @@ -0,0 +1 @@ +--alter="drop primary key, add primary key (id, i)"