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

@ -123,4 +123,6 @@ select json_object("a", cast('{"b": "abcd"}' as json));
select cast(NULL AS JSON);
select json_depth(cast(NULL as JSON));
select json_depth('[[], {}]');
select json_depth('[[[1,2,3],"s"], {}, []]');