Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit beabea6

Browse filesBrowse 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
Copy full SHA for beabea6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎src/backend/optimizer/prep/prepqual.c

Copy file name to clipboardExpand all lines: src/backend/optimizer/prep/prepqual.c
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.