From 3ae038b732ce503fb839e9095355e05f5c6866f9 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Thu, 9 Feb 2017 17:55:58 +0400 Subject: [PATCH] MDEV-11857 json_search() shows "Out of memory" with empty key. Test result updated. --- mysql-test/r/func_json.result | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index bfee73c2eef..e72da47e4ae 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -552,3 +552,6 @@ json_set('[]', '$[0][0]', 100) SELECT json_set('[]', '$[0][0][0]', 100); json_set('[]', '$[0][0][0]', 100) [] +SELECT JSON_search( '{"": "a"}', "one", 'a'); +JSON_search( '{"": "a"}', "one", 'a') +"$."