Do not include return table params in the function arg list

pull/5524/head
Ahmet Gedemenli 2021-12-10 14:50:19 +03:00
parent 73ba38eac4
commit 90928cfd74
1 changed files with 6 additions and 0 deletions

View File

@ -1328,6 +1328,12 @@ CreateFunctionStmtObjectAddress(Node *node, bool missing_ok)
FunctionParameter *funcParam = NULL;
foreach_ptr(funcParam, stmt->parameters)
{
if (funcParam->mode == FUNC_PARAM_TABLE)
{
/* RETURN TABLE parameters should not be included in the args list */
continue;
}
objectWithArgs->objargs = lappend(objectWithArgs->objargs, funcParam->argType);
}