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

Function arraycontains

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

Source from the content-addressed store, hash-verified

4429}
4430
4431Datum
4432arraycontains(PG_FUNCTION_ARGS)
4433{
4434 AnyArrayType *array1 = PG_GETARG_ANY_ARRAY_P(0);
4435 AnyArrayType *array2 = PG_GETARG_ANY_ARRAY_P(1);
4436 Oid collation = PG_GET_COLLATION();
4437 bool result;
4438
4439 result = array_contain_compare(array2, array1, collation, true,
4440 &fcinfo->flinfo->fn_extra);
4441
4442 /* Avoid leaking memory when handed toasted input. */
4443 AARR_FREE_IF_COPY(array1, 0);
4444 AARR_FREE_IF_COPY(array2, 1);
4445
4446 PG_RETURN_BOOL(result);
4447}
4448
4449Datum
4450arraycontained(PG_FUNCTION_ARGS)

Callers

nothing calls this directly

Calls 1

array_contain_compareFunction · 0.85

Tested by

no test coverage detected