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

Function bson_array_grp

storage/connect/bsonudf.cpp:2937–2953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2935} // end of bson_array_grp_add
2936
2937char *bson_array_grp(UDF_INIT *initid, UDF_ARGS *, char *result,
2938 unsigned long *res_length, uchar *, uchar *)
2939{
2940 char *str;
2941 PGLOBAL g = (PGLOBAL)initid->ptr;
2942 PBJNX bxp = (PBJNX)((char*)g->Sarea + sizeof(POOLHEADER));
2943 PBVAL arp = (PBVAL)g->Activityp;
2944
2945 if (g->N < 0)
2946 PUSH_WARNING("Result truncated to json_grp_size values");
2947
2948 if (!arp || !(str = bxp->Serialize(g, arp, NULL, 0)))
2949 str = strcpy(result, g->Message);
2950
2951 *res_length = strlen(str);
2952 return str;
2953} // end of bson_array_grp
2954
2955void bson_array_grp_deinit(UDF_INIT* initid)
2956{

Callers

nothing calls this directly

Calls 1

SerializeMethod · 0.45

Tested by

no test coverage detected