Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 09bb6f6

Browse files
committed
Fix silly mistake in expand_indexqual_rowcompare --- in converting a forboth()
into an iteration over three parallel lists, I had accidentally put the lnext steps outside the loop. Sigh. Per bug #3938.
1 parent b7fe5f7 commit 09bb6f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/optimizer/path/indxpath.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/optimizer/path/indxpath.c,v 1.226 2008/01/01 19:45:50 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/optimizer/path/indxpath.c,v 1.227 2008/02/07 17:53:53 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -2619,9 +2619,9 @@ expand_indexqual_rowcompare(RestrictInfo *rinfo,
26192619
op_strategy, lefttype, righttype, opfam);
26202620
}
26212621
new_ops = lappend_oid(new_ops, expr_op);
2622+
lefttypes_cell = lnext(lefttypes_cell);
2623+
righttypes_cell = lnext(righttypes_cell);
26222624
}
2623-
lefttypes_cell = lnext(lefttypes_cell);
2624-
righttypes_cell = lnext(righttypes_cell);
26252625
}
26262626

26272627
/* If we have more than one matching col, create a subset rowcompare */

0 commit comments

Comments
 (0)