mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Convert all remaining float4 and float8 functions to new fmgr style.
At this point I think it'd be possible to make float4 be pass-by-value without too much work --- and float8 too on machines where Datum is 8 bytes. Something to try when the mood strikes, anyway.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.39 2000/07/14 15:35:44 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.40 2000/08/01 18:29:29 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -566,7 +566,7 @@ parse_random_seed(char *value)
|
||||
else
|
||||
{
|
||||
sscanf(value, "%lf", &seed);
|
||||
setseed(&seed);
|
||||
DirectFunctionCall1(setseed, Float8GetDatum(seed));
|
||||
}
|
||||
return (TRUE);
|
||||
}
|
||||
@ -583,7 +583,7 @@ reset_random_seed(void)
|
||||
{
|
||||
double seed = 0.5;
|
||||
|
||||
setseed(&seed);
|
||||
DirectFunctionCall1(setseed, Float8GetDatum(seed));
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user