summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2016-12-16 14:06:12 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2016-12-16 14:06:12 +0400
commitce55094f4fee3c0ff2c58ac4dd3ef2c16c5e20c3 (patch)
treecb620419c3911e9ca671e2ba24ba6b795cd454da /mysql-test/r
parent30c231b03a270d3056d2e0da6e263ac10091567b (diff)
downloadmariadb-git-ce55094f4fee3c0ff2c58ac4dd3ef2c16c5e20c3.tar.gz
MDEV-11572 JSON_DEPTH returns wrong results.
JSON depth calculation fixed.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/func_json.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result
index 8ce3ccb876f..a704274a112 100644
--- a/mysql-test/r/func_json.result
+++ b/mysql-test/r/func_json.result
@@ -405,6 +405,9 @@ json_depth('[[], {}]')
select json_depth('[[[1,2,3],"s"], {}, []]');
json_depth('[[[1,2,3],"s"], {}, []]')
4
+select json_depth('[10, {"a": 20}]');
+json_depth('[10, {"a": 20}]')
+3
select json_length('');
json_length('')
NULL