Commit b31875b1 authored by Robert Haas's avatar Robert Haas

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.
parent d8411a6c
...@@ -61,8 +61,8 @@ copyParamList(ParamListInfo from) ...@@ -61,8 +61,8 @@ copyParamList(ParamListInfo from)
bool typByVal; bool typByVal;
/* Ignore parameters we don't need, to save cycles and space. */ /* Ignore parameters we don't need, to save cycles and space. */
if (retval->paramMask != NULL && if (from->paramMask != NULL &&
!bms_is_member(i, retval->paramMask)) !bms_is_member(i, from->paramMask))
{ {
nprm->value = (Datum) 0; nprm->value = (Datum) 0;
nprm->isnull = true; nprm->isnull = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment