mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 07:45:44 +00:00
MDEV-12324 Wrong result (phantom array value) on JSON_EXTRACT.
Fixed the path comparison.
This commit is contained in:
@ -1756,7 +1756,7 @@ int json_path_parts_compare(
|
||||
goto step_fits;
|
||||
goto step_failed;
|
||||
}
|
||||
if (a->n_item == 0)
|
||||
if ((a->type & JSON_PATH_WILD) == 0 && a->n_item == 0)
|
||||
goto step_fits_autowrap;
|
||||
goto step_failed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user