Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

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