* Get the required information for input conversion of the
* return value.
************************************************************/
- if (!is_trigger && !is_event_trigger &&
- procStruct->prokind != PROKIND_PROCEDURE)
+ if (!is_trigger && !is_event_trigger)
{
Oid rettype = procStruct->prorettype;
/*
* get information required for output conversion of the return value,
- * but only if this isn't a trigger or procedure.
+ * but only if this isn't a trigger.
*/
- if (!is_trigger && procStruct->prokind != PROKIND_PROCEDURE)
+ if (!is_trigger)
{
Oid rettype = procStruct->prorettype;
HeapTuple rvTypeTup;
Oid result_typid; /* OID of fn's result type */
FmgrInfo result_in_func; /* input function for fn's result type */
Oid result_typioparam; /* param to pass to same */
- bool fn_is_procedure; /* true if this is a procedure */
bool fn_retisset; /* true if function returns a set */
bool fn_retistuple; /* true if function returns composite */
bool fn_retisdomain; /* true if function returns domain */
retval = (Datum) 0;
fcinfo->isnull = true;
}
- else if (fcinfo->isnull && !prodesc->fn_is_procedure)
+ else if (fcinfo->isnull)
{
retval = InputFunctionCall(&prodesc->result_in_func,
NULL,
call_state);
retval = HeapTupleGetDatum(tup);
}
- else if (!prodesc->fn_is_procedure)
+ else
retval = InputFunctionCall(&prodesc->result_in_func,
utf_u2e(Tcl_GetStringResult(interp)),
prodesc->result_typioparam,
-1);
- else
- retval = 0;
return retval;
}
* Get the required information for input conversion of the
* return value.
************************************************************/
- prodesc->fn_is_procedure = (procStruct->prokind == PROKIND_PROCEDURE);
-
- if (!is_trigger && !is_event_trigger && !prodesc->fn_is_procedure)
+ if (!is_trigger && !is_event_trigger)
{
Oid rettype = procStruct->prorettype;
tuplestore_puttuple(call_state->tuple_store, tuple);
}
}
- else if (!prodesc->fn_is_procedure)
+ else
{
Datum retval;
bool isNull = false;