git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39792e5)
Fix for NOT in where clause causing crash.
Mon, 9 Nov 1998 02:49:13 +0000 (02:49 +0000)
Mon, 9 Nov 1998 02:49:13 +0000 (02:49 +0000)

diff --git a/src/backend/optimizer/path/clausesel.c b/src/backend/optimizer/path/clausesel.c
index 8a0536c7bbea4b3e9a9bb7c322bd517ed74ee94f..0bdca62893f63568f396d90921707a6549b9fce4 100644 (file)
--- a/src/backend/optimizer/path/clausesel.c
+++ b/src/backend/optimizer/path/clausesel.c
@@ -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.14 1998年11月09日 02:49:13 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))
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /