summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_json.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-09-12 19:15:31 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-09-12 19:15:31 +0400
commit80a38372832b391488a09c71a260334b23e5c98e (patch)
treee33cf0c64019eec164db00935ec98bcc942f25b2 /mysql-test/t/func_json.test
parent825c8d793d6828bdb4d38ae6dea53ba1363852cf (diff)
downloadmariadb-git-80a38372832b391488a09c71a260334b23e5c98e.tar.gz
MDEV-12877 Wrong result from JSON native function.
JSON_QUOTE return type set to be JSON.
Diffstat (limited to 'mysql-test/t/func_json.test')
-rw-r--r--mysql-test/t/func_json.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test
index f561a2cda8f..39e31b8bb58 100644
--- a/mysql-test/t/func_json.test
+++ b/mysql-test/t/func_json.test
@@ -349,3 +349,8 @@ SET @str = "{\"\\u00e4\":\"yes\"}";
SET @path = "$.\"\\u00e4\"";
select @str, @path, JSON_EXTRACT(@str, @path);
+#
+# MDEV-12877 Wrong result from JSON native function.
+#
+select json_array(5,json_query('[1,2]','$'));
+