Skip to content

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