aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/indxpath.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-08-31 07:19:56 +0000
committerBruce Momjian <bruce@momjian.us>1998-08-31 07:19:56 +0000
commit0705b02f18b161292607a2541689aaf07783d15e (patch)
treed58696298e1a8ef971d71babd3435676d598795f /src/backend/optimizer/path/indxpath.c
parentcbf83190c5d9a620f4bab71e84cf0c2a0c867c07 (diff)
downloadpostgresql-0705b02f18b161292607a2541689aaf07783d15e.tar.gz
postgresql-0705b02f18b161292607a2541689aaf07783d15e.zip
OR clause index fix
Diffstat (limited to 'src/backend/optimizer/path/indxpath.c')
-rw-r--r--src/backend/optimizer/path/indxpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index 00543dcdf16..d7e62b17357 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.31 1998/08/19 02:02:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.32 1998/08/31 07:19:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -340,10 +340,10 @@ match_index_orclause(RelOptInfo *rel,
index) &&
IsA(get_rightop((Expr *) clause), Const)) ||
(match_index_to_operand(indexkey,
- (Expr *) get_leftop((Expr *) clause),
+ (Expr *) get_rightop((Expr *) clause),
rel,
index) &&
- IsA(get_rightop((Expr *) clause), Const))))
+ IsA(get_leftop((Expr *) clause), Const))))
{
lfirst(matching_indices) = lcons(index, lfirst(matching_indices));
}