MCPcopy Create free account
hub / github.com/MariaDB/server / json_norm_append_to_object

Function json_norm_append_to_object

strings/json_normalize.c:829–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827
828
829static int
830json_norm_append_to_object(struct json_norm_value *val,
831 DYNAMIC_STRING *key, json_engine_t *je)
832{
833 int err= 0;
834 struct json_norm_value tmp;
835
836 DBUG_ASSERT(val->type == JSON_VALUE_OBJECT);
837 DBUG_ASSERT(je->value_type != JSON_VALUE_UNINITIALIZED);
838
839 err= json_norm_value_init(&tmp, je);
840
841 if (err)
842 return 1;
843
844 err= json_norm_object_append_key_value(&val->value.object, key, &tmp);
845
846 if (err)
847 json_norm_value_free(&tmp);
848
849 return err;
850}
851
852
853static int

Callers 1

json_norm_parseFunction · 0.85

Calls 3

json_norm_value_initFunction · 0.85
json_norm_value_freeFunction · 0.85

Tested by

no test coverage detected