| 1127 | } |
| 1128 | |
| 1129 | Datum |
| 1130 | FunctionCall1Coll(FmgrInfo *flinfo, Oid collation, Datum arg1) |
| 1131 | { |
| 1132 | LOCAL_FCINFO(fcinfo, 1); |
| 1133 | Datum result; |
| 1134 | |
| 1135 | InitFunctionCallInfoData(*fcinfo, flinfo, 1, collation, NULL, NULL); |
| 1136 | |
| 1137 | fcinfo->args[0].value = arg1; |
| 1138 | fcinfo->args[0].isnull = false; |
| 1139 | |
| 1140 | result = FunctionCallInvoke(fcinfo); |
| 1141 | |
| 1142 | /* Check for null result, since caller is clearly not expecting one */ |
| 1143 | if (fcinfo->isnull) |
| 1144 | elog(ERROR, "function %u returned NULL", flinfo->fn_oid); |
| 1145 | |
| 1146 | return result; |
| 1147 | } |
| 1148 | |
| 1149 | Datum |
| 1150 | FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2) |
no outgoing calls
no test coverage detected