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

Function json_norm_append_to_array

strings/json_normalize.c:805–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803
804
805static int
806json_norm_append_to_array(struct json_norm_value *val,
807 json_engine_t *je)
808{
809 int err= 0;
810 struct json_norm_value tmp;
811
812 DBUG_ASSERT(val->type == JSON_VALUE_ARRAY);
813 DBUG_ASSERT(je->value_type != JSON_VALUE_UNINITIALIZED);
814
815 err= json_norm_value_init(&tmp, je);
816
817 if (err)
818 return 1;
819
820 err= json_norm_array_append_value(&val->value.array, &tmp);
821
822 if (err)
823 json_norm_value_free(&tmp);
824
825 return err;
826}
827
828
829static 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