-
Notifications
You must be signed in to change notification settings - Fork 1.3k
compound pk tests #387
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
Merged
Merged
compound pk tests #387
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
eba4e32
compound pk tests
f6ca08f
more details in failure diff
2736504
more elaborate test; the pk-ts one consistently fails
d98ee9c
Merge branch 'master' into compound-pk-tests
f812284
Merge branch 'master' into compound-pk-tests
797d2ee
Merge branch 'master' into compound-pk-tests
timvaillancourt 0325bd0
Fix merge conflict
timvaillancourt bb6639e
Merge branch 'master' into compound-pk-tests
timvaillancourt f57a0de
Merge branch 'master' into compound-pk-tests
timvaillancourt fd8c456
Merge branch 'master' into compound-pk-tests
timvaillancourt f330d88
Merge branch 'master' into compound-pk-tests
timvaillancourt a2dbb3f
Merge branch 'master' into compound-pk-tests
timvaillancourt 8c1e6bd
Merge branch 'master' into compound-pk-tests
timvaillancourt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
drop table if exists gh_ost_test; | ||
create table gh_ost_test ( | ||
id int auto_increment, | ||
i int not null, | ||
ts0 timestamp(6) default current_timestamp(6), | ||
updated tinyint unsigned default 0, | ||
primary key(id, ts0) | ||
) 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, sysdate(6), 0); | ||
update gh_ost_test set updated = 1 where i = 11 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 13, sysdate(6), 0); | ||
update gh_ost_test set updated = 1 where i = 13 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 17, sysdate(6), 0); | ||
update gh_ost_test set updated = 1 where i = 17 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 19, sysdate(6), 0); | ||
update gh_ost_test set updated = 1 where i = 19 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 23, sysdate(6), 0); | ||
update gh_ost_test set updated = 1 where i = 23 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 29, sysdate(6), 0); | ||
insert into gh_ost_test values (null, 31, sysdate(6), 0); | ||
insert into gh_ost_test values (null, 37, sysdate(6), 0); | ||
insert into gh_ost_test values (null, 41, sysdate(6), 0); | ||
delete from gh_ost_test where i = 31 order by id desc limit 1; | ||
end ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
drop table if exists gh_ost_test; | ||
create table gh_ost_test ( | ||
id int auto_increment, | ||
i int not null, | ||
v varchar(128), | ||
updated tinyint unsigned default 0, | ||
primary key(id, v) | ||
) 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, 'eleven', 0); | ||
update gh_ost_test set updated = 1 where i = 11 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 13, 'thirteen', 0); | ||
update gh_ost_test set updated = 1 where i = 13 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 17, 'seventeen', 0); | ||
update gh_ost_test set updated = 1 where i = 17 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 19, 'nineteen', 0); | ||
update gh_ost_test set updated = 1 where i = 19 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 23, 'twenty three', 0); | ||
update gh_ost_test set updated = 1 where i = 23 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 29, 'twenty nine', 0); | ||
insert into gh_ost_test values (null, 31, 'thirty one', 0); | ||
insert into gh_ost_test values (null, 37, 'thirty seven', 0); | ||
insert into gh_ost_test values (null, 41, 'forty one', 0); | ||
delete from gh_ost_test where i = 31 order by id desc limit 1; | ||
end ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.