mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-11448 Assertion `*p_cur_step < p->last_step' failed in strings/json_lib.c handle_match.
Test case added.
This commit is contained in:
@ -73,6 +73,9 @@ json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x')
|
|||||||
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
|
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
|
||||||
json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x')
|
json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x')
|
||||||
["a", {"b": [ "x",1, 2]}, [3, 4]]
|
["a", {"b": [ "x",1, 2]}, [3, 4]]
|
||||||
|
select json_array_insert('true', '$', 1);
|
||||||
|
json_array_insert('true', '$', 1)
|
||||||
|
NULL
|
||||||
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
|
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
|
||||||
json_contains('{"k1":123, "k2":345}', '123', '$.k1')
|
json_contains('{"k1":123, "k2":345}', '123', '$.k1')
|
||||||
1
|
1
|
||||||
|
@ -28,6 +28,7 @@ select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[2]', 'x');
|
|||||||
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[3]', 'x');
|
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[3]', 'x');
|
||||||
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x');
|
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[4]', 'x');
|
||||||
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
|
select json_array_insert('["a", {"b": [1, 2]}, [3, 4]]', '$[1].b[0]', 'x');
|
||||||
|
select json_array_insert('true', '$', 1);
|
||||||
|
|
||||||
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
|
select json_contains('{"k1":123, "k2":345}', '123', '$.k1');
|
||||||
select json_contains('"you"', '"you"');
|
select json_contains('"you"', '"you"');
|
||||||
|
Reference in New Issue
Block a user