Skip to content

Commit b31875b

Browse files
committed
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.
1 parent d8411a6 commit b31875b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/nodes/params.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ copyParamList(ParamListInfo from)
6161
bool typByVal;
6262

6363
/* Ignore parameters we don't need, to save cycles and space. */
64-
if (retval->paramMask != NULL &&
65-
!bms_is_member(i, retval->paramMask))
64+
if (from->paramMask != NULL &&
65+
!bms_is_member(i, from->paramMask))
6666
{
6767
nprm->value = (Datum) 0;
6868
nprm->isnull = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy