mirror of
https://github.com/MariaDB/server.git
synced 2025-07-24 19:42:23 +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:
@ -804,3 +804,9 @@ SELECT JSON_SEARCH(@`json`, 'one', @`value`);
|
||||
JSON_SEARCH(@`json`, 'one', @`value`)
|
||||
"$[2].C"
|
||||
SET @`json` := NULL, @`value` := NULL;
|
||||
#
|
||||
# MDEV-17001 JSON_MERGE returns nullwhen merging empty array.
|
||||
#
|
||||
SELECT JSON_MERGE('[1]', '[]');
|
||||
JSON_MERGE('[1]', '[]')
|
||||
[1]
|
||||
|
Reference in New Issue
Block a user