Skip to content

Commit 1426db5

Browse files
committed
Fix stupid oversight ...
1 parent fe19e56 commit 1426db5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* 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 $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -1610,8 +1610,8 @@ eqjoinsel(PG_FUNCTION_ARGS)
16101610
* side? It seems that if we assume equal distribution for the
16111611
* other side, we end up with the same answer anyway.
16121612
*/
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;
16151615

16161616
selec = (1.0 - nullfrac1) * (1.0 - nullfrac2);
16171617
if (nd1 > nd2)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy