Fix thinko in copyParamList.

There's no point in consulting retval->paramMask; it's always NULL.
Instead, we should consult from->paramMask.

Reported by Andrew Gierth.
This commit is contained in:
Robert Haas 2016-07-27 10:16:26 -04:00
parent d8411a6c8b
commit b31875b1fe
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ copyParamList(ParamListInfo from)
bool typByVal;
/* Ignore parameters we don't need, to save cycles and space. */
if (retval->paramMask != NULL &&
!bms_is_member(i, retval->paramMask))
if (from->paramMask != NULL &&
!bms_is_member(i, from->paramMask))
{
nprm->value = (Datum) 0;
nprm->isnull = true;