-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RedisValue: type mismatch #2418
Comments
What does |
It prints "12", which is correct.
It prints:
Instead, this:
...well, it prints an empty string for |
That suggests the match wasn't found by name. I'll see what I can find. |
I have a repro, but I don't get the empty value - I get a 12, but where IsInteger reports false; I think this is a documentation error, as this isn't intended to mean "can be interpreted as", but instead means "the underlying value being used here is..." It should work correctly via |
See also: ^^^ |
(note: if this fixes things, please don't close this - I will add a documentation fix in that branch and add a PR) |
Also note for me: check that we have |
* add passing (modified) test for #2418 * - clarify the meaning of RedisValue.IsInteger, and reduce the visibility - fix a typo * fix PR number
Fixed in #2420 - closing out to cleanup :) |
Hello!
I'm experiencing an issue with
RedisValue
underlying type.So, I'm flushing some data like the following:
The property
IsInteger()
printstrue
forsomeInt
.The problem occurs when attempting to read back the set:
Here
IsInteger()
returnsfalse
, and I cannot sort out why.Furthermore any cast to
Int32
just fails (e.g.var x = (Int32)someInt;
).Any hint?
The text was updated successfully, but these errors were encountered: