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
This commit is contained in:
Alexander Korotkov 2024-04-08 01:38:37 +03:00
parent 72bd38cc99
commit beabea6c20
1 changed files with 3 additions and 2 deletions

View File

@ -578,10 +578,11 @@ transform_or_to_any(List *orlist)
HeapTuple opertup;
Form_pg_operator operform;
List *namelist = NIL;
ListCell *lc2;
foreach(lc, entry->consts)
foreach(lc2, entry->consts)
{
Node *node = (Node *) lfirst(lc);
Node *node = (Node *) lfirst(lc2);
node = coerce_to_common_type(NULL, node, scalar_type,
"OR ANY Transformation");