Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-2
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)