MDEV-28071: JSON_EXISTS returns always 1 if it is used range notation for
json path Analysis: When searching for the given path in json string, if the current step is of array range type, then path was considered reached which meant path exists. So output was always true. The end indexes of range were not evaluated. Fix: If the current step type for a path is array range, then check if the value array_counter[] is in range of n_item and n_item_end. If it is, then path exists. Only then return true. If the range criteria is never met then return false.
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment