Skip to content
Snippets Groups Projects
Commit 1426db5d authored by Tom Lane's avatar Tom Lane
Browse files

Fix stupid oversight ...

parent fe19e56c
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.135 2003/04/15 05:18:12 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.136 2003/04/16 04:37:58 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1610,8 +1610,8 @@ eqjoinsel(PG_FUNCTION_ARGS) ...@@ -1610,8 +1610,8 @@ eqjoinsel(PG_FUNCTION_ARGS)
* side? It seems that if we assume equal distribution for the * side? It seems that if we assume equal distribution for the
* other side, we end up with the same answer anyway. * other side, we end up with the same answer anyway.
*/ */
double nullfrac1 = stats1->stanullfrac; double nullfrac1 = stats1 ? stats1->stanullfrac : 0.0;
double nullfrac2 = stats2->stanullfrac; double nullfrac2 = stats2 ? stats2->stanullfrac : 0.0;
selec = (1.0 - nullfrac1) * (1.0 - nullfrac2); selec = (1.0 - nullfrac1) * (1.0 - nullfrac2);
if (nd1 > nd2) if (nd1 > nd2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment