Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf03729c

Browse files
committed
Fix for NOT in where clause causing crash.
1 parent39792e5 commitf03729c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/backend/optimizer/path/clausesel.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.13 1998/09/01 04:29:29 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.14 1998/11/09 02:49:13 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -254,6 +254,11 @@ compute_selec(Query *root, List *clauses, List *or_selectivities)
254254
*/
255255
s1=0.1;
256256
}
257+
elseif (not_clause((Node*)clause))
258+
{
259+
/* negate this baby */
260+
return1-compute_selec(root, ((Expr*)clause)->args,or_selectivities);
261+
}
257262
elseif (is_subplan((Node*)clause))
258263
{
259264

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp