Skip to content

JSON.DEL count deleted null value - #515

Merged
oshadmi merged 3 commits into
masterfrom
omer_del_null_count
Nov 2, 2021
Merged

oshadmi merged 3 commits into
masterfrom
omer_del_null_count

Conversation

@oshadmi

@oshadmi oshadmi commented Nov 2, 2021

Copy link
Copy Markdown
Collaborator

JSON.DEL with a path leading to a json null should be counted by the return value

MeirShpilraien
MeirShpilraien previously approved these changes Nov 2, 2021
Comment thread src/redisjson.rs
deleted += 1; // might delete more than a single value
}
self.data = jsonpath_lib::replace_with(self.data.take(), path, |_v| {
deleted += 1; // might delete more than a single value

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is not needed right?

@oshadmi
oshadmi merged commit 24e7edd into master Nov 2, 2021
@oshadmi
oshadmi deleted the omer_del_null_count branch November 2, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants