Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed zset methods to handle non-string members #12

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

cander commented Mar 18, 2012

Passing a non-string (e.g. integer) member caused incorrect behavior
because Redis converts all members to strings.
Modified: zadd, zincrby, zrank, zrem, zrevrank, and zscore.

I started with an issue with zadd that spread to zrem, at which point I just decided to go through all of the sorted set commands looking for this problem. I think I got them all. I don't know if other data types have a similar problem. I'll look if I have some free time.

thanks,
Charles.

Fixed zset methods to handle non-string members
Passing a non-string (e.g. integer) member caused incorrect behavior
because Redis converts all members to strings.
Modified: zadd, zincrby, zrank, zrem, zrevrank, and zscore.
@ghost

ghost commented Mar 18, 2012

Thanks a lot! Merged.

@ghost ghost closed this Mar 18, 2012

@sds sds added the bug label Apr 8, 2014

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment