diff --git a/localtests/move-tables/generated-columns/create.sql b/localtests/move-tables/generated-columns/create.sql new file mode 100644 index 000000000..357d4a3b4 --- /dev/null +++ b/localtests/move-tables/generated-columns/create.sql @@ -0,0 +1,32 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + a int not null, + b int not null, + sum_ab int as (a + b) virtual not null, + 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 (id, a, b) values (null, 2,3); + insert into gh_ost_test (id, a, b) values (null, 2,4); + insert into gh_ost_test (id, a, b) values (null, 2,5); + insert into gh_ost_test (id, a, b) values (null, 2,6); + insert into gh_ost_test (id, a, b) values (null, 2,7); + insert into gh_ost_test (id, a, b) values (null, 2,8); + insert into gh_ost_test (id, a, b) values (null, 2,9); + insert into gh_ost_test (id, a, b) values (null, 2,0); + insert into gh_ost_test (id, a, b) values (null, 2,1); + insert into gh_ost_test (id, a, b) values (null, 2,2); + update gh_ost_test set b=b+1 where id < 5; + update gh_ost_test set b=b-1 where id >= 5; +end ;; diff --git a/localtests/move-tables/generated-columns/ignore_versions b/localtests/move-tables/generated-columns/ignore_versions new file mode 100644 index 000000000..cf02abe24 --- /dev/null +++ b/localtests/move-tables/generated-columns/ignore_versions @@ -0,0 +1 @@ +Percona \ No newline at end of file diff --git a/localtests/move-tables/generated-columns/tables.txt b/localtests/move-tables/generated-columns/tables.txt new file mode 100644 index 000000000..11fc5eef8 --- /dev/null +++ b/localtests/move-tables/generated-columns/tables.txt @@ -0,0 +1 @@ +gh_ost_test