mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17001 JSON_MERGE returns nullwhen merging empty array.
Don't add the comma if nothing appended to the array.
This commit is contained in:
@ -463,3 +463,8 @@ SET @`json` := '["A", [{"B": "1"}], {"C": "AB"}, {"D": "BC"}]', @`value` := 'AB'
|
||||
SELECT JSON_SEARCH(@`json`, 'one', @`value`);
|
||||
SET @`json` := NULL, @`value` := NULL;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17001 JSON_MERGE returns nullwhen merging empty array.
|
||||
--echo #
|
||||
|
||||
SELECT JSON_MERGE('[1]', '[]');
|
||||
|
Reference in New Issue
Block a user