mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17121 JSON_ARRAY_APPEND.
Extra comma added to the result when an json array is empty.
This commit is contained in:
@ -790,3 +790,9 @@ JSON_SET('{}', '$.a', _utf8 0xC3B6, '$.b', _utf8 0xC3B6)
|
||||
SELECT JSON_SET('{}', '$.a', _utf8 X'C3B6', '$.x', 1, '$.b', _utf8 X'C3B6');
|
||||
JSON_SET('{}', '$.a', _utf8 X'C3B6', '$.x', 1, '$.b', _utf8 X'C3B6')
|
||||
{"a": "<22>", "x": 1, "b": "<22>"}
|
||||
#
|
||||
# MDEV-17121 JSON_ARRAY_APPEND
|
||||
#
|
||||
select json_array_append('[ ]', '$', 'aue');
|
||||
json_array_append('[ ]', '$', 'aue')
|
||||
["aue"]
|
||||
|
Reference in New Issue
Block a user