1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-JSON_CONTAINS_PATH returns incorrect results and produces wrong warning.

The Item_func_json_contains_path was mistakenly set with the
        no '*' paths limitation.
This commit is contained in:
Alexey Botchkov
2016-12-16 12:43:44 +04:00
parent e5377be211
commit beded4350f
3 changed files with 6 additions and 2 deletions

View File

@ -65,6 +65,7 @@ select json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.ma");
select json_contains_path('{"key1":1, "key2":[2,3]}', "aLl", "$.key1", "$.key2");
select json_contains_path('{ "a": true }', NULL, '$.a' );
select json_contains_path('{ "a": true }', 'all', NULL );
select json_contains_path('{"a":{"b":"c"}}', 'one', '$.a.*');
select json_extract('{"key1":"asd", "key2":[2,3]}', "$.key1");
select json_extract('{"key1":"asd", "key2":[2,3]}', "$.keyX", "$.keyY");