1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-11573 JSON_LENGTH returns incorrect results.

Item_func_json_length fixed.
This commit is contained in:
Alexey Botchkov
2016-12-24 11:40:31 +04:00
parent 4d10273b4f
commit 3a1772798d
4 changed files with 77 additions and 11 deletions

View File

@@ -425,6 +425,12 @@ json_length('{}')
select json_length('[1, 2, {"a": 3}]');
json_length('[1, 2, {"a": 3}]')
3
select json_length('{"a": 1, "b": {"c": 30}}', '$.b');
json_length('{"a": 1, "b": {"c": 30}}', '$.b')
1
select json_length('{"a": 1, "b": {"c": 30}}');
json_length('{"a": 1, "b": {"c": 30}}')
2
create table json (j INT);
show create table json;
Table Create Table