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:
@ -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
|
||||
|
Reference in New Issue
Block a user