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

MDEV-11465 JSON_LENGTH returns incorrect length.

Item_func_json_length::val_int fixed.
This commit is contained in:
Alexey Botchkov
2016-12-05 08:59:55 +04:00
parent 75a51818b2
commit 2b01461629
3 changed files with 13 additions and 2 deletions

View File

@ -292,3 +292,12 @@ json_depth('[[], {}]')
select json_depth('[[[1,2,3],"s"], {}, []]');
json_depth('[[[1,2,3],"s"], {}, []]')
4
select json_length('');
json_length('')
NULL
select json_length('{}');
json_length('{}')
0
select json_length('[1, 2, {"a": 3}]');
json_length('[1, 2, {"a": 3}]')
3