Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cargo-features = ["edition2021"]
[package]
name = "redisjson"
version = "99.99.99"
authors = ["Gavrie Philipson <gavrie@redis.com>"]
authors = ["Guy Korland <guy.korland@redis.com>", "Meir Shpilraien <meir@redis.com>", "Omer Shadmi <omer.shadmi@redis.com>"]
edition = "2021"
description = "JSON data type for Redis"
repository = "https://github.com/RedisJSON/RedisJSON"
Expand Down
12 changes: 12 additions & 0 deletions tests/pytest/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,18 @@ def testIssue_597(env):
# make sure value was not changed
env.expect("JSON.GET", "test", ".").equal('[0]')

def testCrashInParserMOD2099(env):

r = env
r.assertOk(r.execute_command('JSON.SET', 'test', '$', '{"a":{"x":{"i":10}}, "b":{"x":{"i":20, "j":5}}}'))

res = r.execute_command('JSON.GET', 'test', '$..x[?(@.i>10)]')
r.assertEqual(res, '[{"i":20,"j":5}]')

res = r.execute_command('JSON.GET', 'test', '$..x[?($.i>10)]')
r.assertEqual(res, '[]')


# class CacheTestCase(BaseReJSONTest):
# @property
# def module_args(env):
Expand Down