diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-05 08:59:55 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-05 08:59:55 +0400 |
commit | 2b01461629ea520c263eccc962a18b5a7ae7962f (patch) | |
tree | 1f47131ffd66009c0c4424735f70d8ddda8fd71c /mysql-test/r/func_json.result | |
parent | 75a51818b25c48783918464853cc965a180e1a97 (diff) | |
download | mariadb-git-2b01461629ea520c263eccc962a18b5a7ae7962f.tar.gz |
MDEV-11465 JSON_LENGTH returns incorrect length.
Item_func_json_length::val_int fixed.
Diffstat (limited to 'mysql-test/r/func_json.result')
-rw-r--r-- | mysql-test/r/func_json.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index cf9e67793ab..e69e1f138c3 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -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 |