1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

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