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:
@ -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');
|
||||
|
Reference in New Issue
Block a user