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

Fix corrupt modified enum values #1177

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
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
25 changes: 25 additions & 0 deletions localtests/enum-modified/create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
result enum('Pass', 'Fail') not null,
primary key(id)
) auto_increment=1 default charset=latin1;

insert into gh_ost_test values (1, 7, 'Pass');
insert into gh_ost_test values (2, 8, 'Fail');
insert into gh_ost_test values (3, 19, 'Pass');

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 (i, result) values(12345, 0);
insert into gh_ost_test (i, result) values(12345, 1);
end ;;
1 change: 1 addition & 0 deletions localtests/enum-modified/extra_args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--alter="modify column result enum('Pass', 'MostExcellent') not null"