File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
*
16
16
*
17
17
* IDENTIFICATION
18
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.135 2003/04/15 05:18:12 tgl Exp $
18
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.136 2003/04/16 04:37:58 tgl Exp $
19
19
*
20
20
*-------------------------------------------------------------------------
21
21
*/
@@ -1610,8 +1610,8 @@ eqjoinsel(PG_FUNCTION_ARGS)
1610
1610
* side? It seems that if we assume equal distribution for the
1611
1611
* other side, we end up with the same answer anyway.
1612
1612
*/
1613
- double nullfrac1 = stats1 -> stanullfrac ;
1614
- double nullfrac2 = stats2 -> stanullfrac ;
1613
+ double nullfrac1 = stats1 ? stats1 -> stanullfrac : 0.0 ;
1614
+ double nullfrac2 = stats2 ? stats2 -> stanullfrac : 0.0 ;
1615
1615
1616
1616
selec = (1.0 - nullfrac1 ) * (1.0 - nullfrac2 );
1617
1617
if (nd1 > nd2 )
You can’t perform that action at this time.
0 commit comments