File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/backend/optimizer/path Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.57 1999/06/19 04:54:14 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.57.2.1 1999/09/14 20:26:02 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -585,12 +585,13 @@ match_clause_to_indexkey(RelOptInfo *rel,
585
585
Oid restrict_op = InvalidOid ;
586
586
bool isIndexable = false;
587
587
588
- if (or_clause ((Node * ) clause ) ||
589
- not_clause ((Node * ) clause ) || single_node ((Node * ) clause ))
590
- return (RestrictInfo * ) NULL ;
591
-
588
+ /* Clause must be a binary opclause. */
589
+ if (! is_opclause ((Node * ) clause ))
590
+ return NULL ;
592
591
leftop = get_leftop (clause );
593
592
rightop = get_rightop (clause );
593
+ if (! leftop || ! rightop )
594
+ return NULL ;
594
595
595
596
/*
596
597
* If this is not a join clause, check for clauses of the form:
You can’t perform that action at this time.
0 commit comments