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

MDEV-11572 JSON_DEPTH returns wrong results.

JSON depth calculation fixed.
This commit is contained in:
Alexey Botchkov
2016-12-16 14:06:12 +04:00
parent 30c231b03a
commit ce55094f4f
3 changed files with 5 additions and 0 deletions

View File

@ -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