1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

OR clause index fix

This commit is contained in:
Bruce Momjian
1998-08-31 07:19:56 +00:00
parent cbf83190c5
commit 0705b02f18
3 changed files with 13 additions and 15 deletions

View File

@ -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));
}