mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix for NOT in where clause causing crash.
This commit is contained in:
parent
7f73a23fd7
commit
190cc6354f
1 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.13 1998/09/01 04:29:29 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.13.2.1 1998/11/09 02:49:35 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -254,6 +254,11 @@ compute_selec(Query *root, List *clauses, List *or_selectivities)
|
|||
*/
|
||||
s1 = 0.1;
|
||||
}
|
||||
else if (not_clause((Node *) clause))
|
||||
{
|
||||
/* negate this baby */
|
||||
return 1 - compute_selec(root, ((Expr *)clause)->args, or_selectivities);
|
||||
}
|
||||
else if (is_subplan((Node *) clause))
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue