From: Tom Lane Date: Thu, 7 Feb 2008 17:53:53 +0000 (+0000) Subject: Fix silly mistake in expand_indexqual_rowcompare --- in converting a forboth() X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ba2822b8244d34ae73ed33621c15955acc331b55;p=users%2Fbernd%2Fpostgres.git 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. --- diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c index 2ed794fba0..e07343cba9 100644 --- a/src/backend/optimizer/path/indxpath.c +++ b/src/backend/optimizer/path/indxpath.c @@ -2619,9 +2619,9 @@ expand_indexqual_rowcompare(RestrictInfo *rinfo, op_strategy, lefttype, righttype, opfam); } new_ops = lappend_oid(new_ops, expr_op); + lefttypes_cell = lnext(lefttypes_cell); + righttypes_cell = lnext(righttypes_cell); } - lefttypes_cell = lnext(lefttypes_cell); - righttypes_cell = lnext(righttypes_cell); } /* If we have more than one matching col, create a subset rowcompare */