Open thekauer opened 1 year ago
@thekauer Thanks for reporting this.
I have tested both original redis, and our implementation.
Both does not allow setting objects at the root when XX
is provided.
Our implementation returns error as if XX
is not provided.
Original Redis returns nil following this spec:
Return value
JSET.SET returns a simple string reply: OK if executed correctly or nil if the specified NX or XX conditions were not met. For more information about replies, see [Redis serialization protocol specification](https://redis.io/docs/reference/protocol-spec).
So the effects of both are same but how the error is reported is different. I will send a fix soon.
This is now fixed in codebase, but I'll close the issue once it's deployed to all regions.
The following command errors on upstash. (
doc
does not exist before running the command.)JSON.SET doc '$.a' '{"a":2}' XX
result in upstash:
ERR new objects must be created at the root
result using redislab - expected result:(nil)