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

Function bson_array_grp_clear

storage/connect/bsonudf.cpp:2916–2924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2914} // end of bson_array_grp_init
2915
2916void bson_array_grp_clear(UDF_INIT *initid, uchar *, uchar *)
2917{
2918 PGLOBAL g = (PGLOBAL)initid->ptr;
2919 PBJNX bxp = (PBJNX)((char*)g->Sarea + sizeof(POOLHEADER));
2920
2921 JsonSubSet(g);
2922 g->Activityp = (PACTIVITY)bxp->NewVal(TYPE_JAR);
2923 g->N = GetJsonGroupSize();
2924} // end of bson_array_grp_clear
2925
2926void bson_array_grp_add(UDF_INIT *initid, UDF_ARGS *args, uchar *, uchar *)
2927{

Callers 1

bbin_array_grp_clearFunction · 0.85

Calls 3

JsonSubSetFunction · 0.85
GetJsonGroupSizeFunction · 0.85
NewValMethod · 0.80

Tested by

no test coverage detected