1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-17121 JSON_ARRAY_APPEND.

Extra comma added to the result when an json array is empty.
This commit is contained in:
Alexey Botchkov
2018-09-11 14:37:45 +04:00
parent 4d9ec7cb6c
commit c8bb43a938
5 changed files with 48 additions and 2 deletions

View File

@@ -319,6 +319,12 @@ int json_skip_to_level(json_engine_t *j, int level);
json_skip_to_level((json_engine), (json_engine)->stack_p)
/*
works as json_skip_level() but also counts items on the current
level skipped.
*/
int json_skip_level_and_count(json_engine_t *j, int *n_items_skipped);
#define json_skip_array_item json_skip_key
/*