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

Function boolop

contrib/intarray/_int_bool.c:418–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418Datum
419boolop(PG_FUNCTION_ARGS)
420{
421 ArrayType *val = PG_GETARG_ARRAYTYPE_P_COPY(0);
422 QUERYTYPE *query = PG_GETARG_QUERYTYPE_P(1);
423 CHKVAL chkval;
424 bool result;
425
426 CHECKARRVALID(val);
427 PREPAREARR(val);
428 chkval.arrb = ARRPTR(val);
429 chkval.arre = chkval.arrb + ARRNELEMS(val);
430 result = execute(GETQUERY(query) + query->size - 1,
431 &chkval, NULL, true,
432 checkcondition_arr);
433 pfree(val);
434
435 PG_FREE_IF_COPY(query, 1);
436 PG_RETURN_BOOL(result);
437}
438
439static void
440findoprnd(ITEM *ptr, int32 *pos)

Callers

nothing calls this directly

Calls 2

executeFunction · 0.70
pfreeFunction · 0.50

Tested by

no test coverage detected