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

Do not invert the range if the max value is default(RedisValue) #1573

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

tombatron
Copy link
Contributor

If the stop value is default(RedisValue) and is compared against a start value that isn't the result from start.CompareTo(stop) is 1, which would reverse the range, which would cause the library to emit an incorrect query to Redis.

I figured this change would have far fewer impacts than changing how RedisValue.CompareTo works.

This should close issue #992

Essentially we need to ensure that if `Order` is set to "Ascending" and
the `max` value is `default(RedisValue)` that the range command is
issued correctly.
@tombatron
Copy link
Contributor Author

It looks like the tests that are failing are all related to NRediSearch:

StackExchange.Redis.RedisException : NRedisSearch module missing on 127.0.0.1:6385

@mgravell mgravell merged commit 76cba67 into StackExchange:main Oct 21, 2020
@mgravell
Copy link
Collaborator

merged, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants