Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Fix for Collection#slice incorrect offset adjustments for chained negative offsets#202

Open
UncleGene wants to merge 1 commit intodatamapper:masterfrom
UncleGene:master
Open

Fix for Collection#slice incorrect offset adjustments for chained negative offsets#202
UncleGene wants to merge 1 commit intodatamapper:masterfrom
UncleGene:master

Conversation

@UncleGene
Copy link

Existing processing of offset does not account for pre-existing query conditions (such as limit and add_reversed?), thus breaking all cases of chained application of #slice where at least one offset is negative.

Tests for such cases added.

This change can be used as a base for chained #last behavior fix (also broken)

…r reversed query (for correct slice with negative offset chaining)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments