| 1221 | } |
| 1222 | |
| 1223 | Datum |
| 1224 | FunctionCall5Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, |
| 1225 | Datum arg3, Datum arg4, Datum arg5) |
| 1226 | { |
| 1227 | LOCAL_FCINFO(fcinfo, 5); |
| 1228 | Datum result; |
| 1229 | |
| 1230 | InitFunctionCallInfoData(*fcinfo, flinfo, 5, collation, NULL, NULL); |
| 1231 | |
| 1232 | fcinfo->args[0].value = arg1; |
| 1233 | fcinfo->args[0].isnull = false; |
| 1234 | fcinfo->args[1].value = arg2; |
| 1235 | fcinfo->args[1].isnull = false; |
| 1236 | fcinfo->args[2].value = arg3; |
| 1237 | fcinfo->args[2].isnull = false; |
| 1238 | fcinfo->args[3].value = arg4; |
| 1239 | fcinfo->args[3].isnull = false; |
| 1240 | fcinfo->args[4].value = arg5; |
| 1241 | fcinfo->args[4].isnull = false; |
| 1242 | |
| 1243 | result = FunctionCallInvoke(fcinfo); |
| 1244 | |
| 1245 | /* Check for null result, since caller is clearly not expecting one */ |
| 1246 | if (fcinfo->isnull) |
| 1247 | elog(ERROR, "function %u returned NULL", flinfo->fn_oid); |
| 1248 | |
| 1249 | return result; |
| 1250 | } |
| 1251 | |
| 1252 | Datum |
| 1253 | FunctionCall6Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, |
no outgoing calls
no test coverage detected