You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the property is not created when using the bracket syntax ($.['testProp']),
if the property name starts with - character, a syntax error is returned.
To Reproduce
Steps to reproduce the behavior:
> json.set testKey $ {}
"OK"
> json.set testKey "$.['testProp']" 1
(nil) <-- THIS IS WRONG
> json.get testKey
"{}" <-- THE VALUE WAS NOT SET
> json.set testKey "$.testProp" 1
"OK" <-- NOT USING BRACKETS WORKS
> json.set testKey "$.['testProp']" 2
"OK" <-- IF THE KEY EXISTS, THIS WORKS TOO
> json.set testKey "$.['-testProp']" 1
"ERR syntax error" <-- THIS IS WRONG TOO
Expected behavior
All of the above should work without errors.
Screenshots
Redis (all works):
Dragonfly:
Environment (please complete the following information):
Describe the bug
When creating a new property in a JSON value:
$.['testProp']
),-
character, a syntax error is returned.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All of the above should work without errors.
Screenshots
Redis (all works):
Dragonfly:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: