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

MDEV-11474 JSON_DEPTH returns incorrect results.

Item_func_json_depth::val_int fixed.
This commit is contained in:
Alexey Botchkov
2016-12-05 07:17:54 +04:00
parent 78dc7c3a6e
commit 7e03c67ae8
3 changed files with 18 additions and 2 deletions

View File

@ -277,3 +277,9 @@ NULL
select json_depth(cast(NULL as JSON));
json_depth(cast(NULL as JSON))
NULL
select json_depth('[[], {}]');
json_depth('[[], {}]')
2
select json_depth('[[[1,2,3],"s"], {}, []]');
json_depth('[[[1,2,3],"s"], {}, []]')
4