mirror of
https://github.com/postgres/postgres.git
synced 2026-04-10 11:37:33 -04:00
Fix stupid oversight ...
This commit is contained in:
parent
d38fdbc939
commit
dc3e14d3d5
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.119.2.3 2003/04/15 05:18:30 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.119.2.4 2003/04/16 04:38:05 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -1571,8 +1571,8 @@ eqjoinsel(PG_FUNCTION_ARGS)
|
|||
* side? It seems that if we assume equal distribution for the
|
||||
* other side, we end up with the same answer anyway.
|
||||
*/
|
||||
double nullfrac1 = stats1->stanullfrac;
|
||||
double nullfrac2 = stats2->stanullfrac;
|
||||
double nullfrac1 = stats1 ? stats1->stanullfrac : 0.0;
|
||||
double nullfrac2 = stats2 ? stats2->stanullfrac : 0.0;
|
||||
|
||||
selec = (1.0 - nullfrac1) * (1.0 - nullfrac2);
|
||||
if (nd1 > nd2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue