Fix for returning stack pointer from selectivity, from Bernard Frankpitt.

This commit is contained in:
Bruce Momjian 1999-02-05 17:47:29 +00:00
parent f962514403
commit d5db88142c
1 changed files with 3 additions and 5 deletions

View File

@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.23 1998/09/01 04:32:50 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.24 1999/02/05 17:47:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -390,18 +390,16 @@ btreesel(Oid operatorObjectId,
Oid indexrelid)
{
float64 result;
float64data resultData;
if (FunctionalSelectivity(nIndexKeys, attributeNumber))
{
/*
* Need to call the functions selectivity function here. For now
* simply assume it's 1/3 since functions don't currently have
* selectivity functions
*/
resultData = 1.0 / 3.0;
result = &resultData;
result = (float64) palloc(sizeof(float64data));
*result = 1.0 / 3.0;
}
else
{