Skip to content

Commit beabea6

Browse files
committed
Fix usage of same ListCell transform_or_to_any()'s in nested loops
Discussion: https://postgr.es/m/CAAKRu_b4SXNW4GAM0bv3e6wcL5ODSXg1ZdRCn6uyLLjSPbveBg%40mail.gmail.com Author: Melanie Plageman
1 parent 72bd38c commit beabea6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/optimizer/prep/prepqual.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,11 @@ transform_or_to_any(List *orlist)
578578
HeapTuple opertup;
579579
Form_pg_operator operform;
580580
List *namelist = NIL;
581+
ListCell *lc2;
581582

582-
foreach(lc, entry->consts)
583+
foreach(lc2, entry->consts)
583584
{
584-
Node *node = (Node *) lfirst(lc);
585+
Node *node = (Node *) lfirst(lc2);
585586

586587
node = coerce_to_common_type(NULL, node, scalar_type,
587588
"OR ANY Transformation");

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