Skip to content

Commit

Permalink
adding a onlineddl_vrepl_suite test
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>
  • Loading branch information
shlomi-noach authored and Olga Shestopalova committed Sep 26, 2023
1 parent 39b7dea commit d874a73
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var (
)

const (
testDataPath = "testdata"
testDataPath = "tmptestdata"
defaultSQLMode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id, c1j
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
change column c1 c1j json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id, c1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
drop table if exists onlineddl_test;
create table onlineddl_test (
id int auto_increment,
c1 int not null,
primary key (id)
) auto_increment=1;

insert into onlineddl_test values (1, 11);
insert into onlineddl_test values (2, 13);

drop event if exists onlineddl_test;
delimiter ;;
create event onlineddl_test
on schedule every 1 second
starts current_timestamp
ends current_timestamp + interval 60 second
on completion not preserve
enable
do
begin
insert into onlineddl_test values (null, 17);
end ;;

0 comments on commit d874a73

Please sign in to comment.