1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11857 json_search() shows "Out of memory" with empty key.

We should be ready for an empty key.
This commit is contained in:
Alexey Botchkov
2017-02-09 17:38:53 +04:00
parent 66c6188a4b
commit 0e6968c244
3 changed files with 16 additions and 5 deletions

View File

@ -220,3 +220,8 @@ SELECT json_replace('1', '$[0][0]', 100);
SELECT json_replace('[]', '$[0][0]', 100);
SELECT json_set('[]', '$[0][0]', 100);
SELECT json_set('[]', '$[0][0][0]', 100);
#
# MDEV-11857 json_search() shows "Out of memory" with empty key.
#
SELECT JSON_search( '{"": "a"}', "one", 'a');