File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 12
12
*
13
13
*
14
14
* IDENTIFICATION
15
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.23 1998/09/01 04:32:50 momjian Exp $
15
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.24 1999/02/05 17:47:29 momjian Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
@@ -390,18 +390,16 @@ btreesel(Oid operatorObjectId,
390
390
Oid indexrelid )
391
391
{
392
392
float64 result ;
393
- float64data resultData ;
394
393
395
394
if (FunctionalSelectivity (nIndexKeys , attributeNumber ))
396
395
{
397
-
398
396
/*
399
397
* Need to call the functions selectivity function here. For now
400
398
* simply assume it's 1/3 since functions don't currently have
401
399
* selectivity functions
402
400
*/
403
- resultData = 1.0 / 3.0 ;
404
- result = & resultData ;
401
+ result = ( float64 ) palloc ( sizeof ( float64data )) ;
402
+ * result = 1.0 / 3.0 ;
405
403
}
406
404
else
407
405
{
You can’t perform that action at this time.
0 commit comments