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

Function FunctionCall2Coll

src/backend/utils/fmgr/fmgr.c:1149–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147}
1148
1149Datum
1150FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
1151{
1152 LOCAL_FCINFO(fcinfo, 2);
1153 Datum result;
1154
1155 InitFunctionCallInfoData(*fcinfo, flinfo, 2, collation, NULL, NULL);
1156
1157 fcinfo->args[0].value = arg1;
1158 fcinfo->args[0].isnull = false;
1159 fcinfo->args[1].value = arg2;
1160 fcinfo->args[1].isnull = false;
1161
1162 result = FunctionCallInvoke(fcinfo);
1163
1164 /* Check for null result, since caller is clearly not expecting one */
1165 if (fcinfo->isnull)
1166 elog(ERROR, "function %u returned NULL", flinfo->fn_oid);
1167
1168 return result;
1169}
1170
1171Datum
1172FunctionCall3Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2,

Callers 15

SumStatisticsInfoCombineFunction · 0.85
MergeRawInfoMethod · 0.85
MergeToMethod · 0.85
UpdateMinMaxValueMethod · 0.85
ExecArithmeticOpNodeMethod · 0.85
ExecOpNodeMethod · 0.85
ExecInNodeMethod · 0.85
FunctionCall2CollMethod · 0.85
mcv_get_match_bitmapFunction · 0.85
call_subtype_diffFunction · 0.85
element_compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected