MCPcopy Create free account
hub / github.com/apache/cloudberry / array_set

Function array_set

src/backend/utils/adt/arrayfuncs.c:3171–3181  ·  view source on GitHub ↗

* array_set : backwards compatibility wrapper for array_set_element * * This only works for detoasted/flattened varlena arrays, since the array * argument and result are declared as "ArrayType *". However there's enough * code like that to justify preserving this API. */

Source from the content-addressed store, hash-verified

3169 * code like that to justify preserving this API.
3170 */
3171ArrayType *
3172array_set(ArrayType *array, int nSubscripts, int *indx,
3173 Datum dataValue, bool isNull,
3174 int arraytyplen, int elmlen, bool elmbyval, char elmalign)
3175{
3176 return DatumGetArrayTypeP(array_set_element(PointerGetDatum(array),
3177 nSubscripts, indx,
3178 dataValue, isNull,
3179 arraytyplen,
3180 elmlen, elmbyval, elmalign));
3181}
3182
3183/*
3184 * array_map()

Callers 4

GUCArrayAddFunction · 0.85
GUCArrayDeleteFunction · 0.85
GUCArrayResetFunction · 0.85
pg_extension_config_dumpFunction · 0.85

Calls 1

array_set_elementFunction · 0.85

Tested by

no test coverage detected