Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online DDL/VReplication: test PK column case change #8336

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
modify ID int
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
drop table if exists onlineddl_test;
create table onlineddl_test (
id int auto_increment,
c1 int not null default 0,
c2 int not null default 0,
primary key (id)
) auto_increment=1;

insert into onlineddl_test values (97, 7, 23);

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 ignore into onlineddl_test values (1, 11, 23);
insert ignore into onlineddl_test values (2, 13, 23);
insert into onlineddl_test values (null, 17, 23);
set @last_insert_id := last_insert_id();
update onlineddl_test set c1=c1+@last_insert_id, c2=c2+@last_insert_id where id=@last_insert_id order by id desc limit 1;
delete from onlineddl_test where id=1;
delete from onlineddl_test where c1=13; -- id=2
end ;;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ create table onlineddl_test (
primary key (id)
) auto_increment=1;

insert into onlineddl_test values (97, 7, 23);

drop event if exists onlineddl_test;
delimiter ;;
create event onlineddl_test
Expand Down

This file was deleted.