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

Function arraycontained

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

Source from the content-addressed store, hash-verified

4447}
4448
4449Datum
4450arraycontained(PG_FUNCTION_ARGS)
4451{
4452 AnyArrayType *array1 = PG_GETARG_ANY_ARRAY_P(0);
4453 AnyArrayType *array2 = PG_GETARG_ANY_ARRAY_P(1);
4454 Oid collation = PG_GET_COLLATION();
4455 bool result;
4456
4457 result = array_contain_compare(array1, array2, collation, true,
4458 &fcinfo->flinfo->fn_extra);
4459
4460 /* Avoid leaking memory when handed toasted input. */
4461 AARR_FREE_IF_COPY(array1, 0);
4462 AARR_FREE_IF_COPY(array2, 1);
4463
4464 PG_RETURN_BOOL(result);
4465}
4466
4467
4468/*-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

array_contain_compareFunction · 0.85

Tested by

no test coverage detected