mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-28319: Assertion `cur_step->type & JSON_PATH_KEY' failed in json_find_path
Analysis: When trying to find path and handling the match for path, value at current index is not set to 0 for array_counters. This causes wrong current step value which eventually causes wrong cur_step->type value. Fix: Set the value at current index for array_counters to 0.
This commit is contained in:
@@ -1060,5 +1060,11 @@ collation(name)
|
||||
utf8mb4_bin
|
||||
DROP VIEW v1;
|
||||
#
|
||||
# MDEV-28319: Assertion `cur_step->type & JSON_PATH_KEY' failed in json_find_path
|
||||
#
|
||||
SELECT * FROM JSON_TABLE('{"foo":{"bar":1},"qux":2}', '$' COLUMNS(c1 VARCHAR(8) PATH '$[0]', c2 CHAR(8) PATH '$.*.x')) AS js;
|
||||
c1 c2
|
||||
NULL NULL
|
||||
#
|
||||
# End of 10.9 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user