From 3c49c4b1520fd29dea570b4cde8a66bc5893078c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 1 Sep 2002 00:58:07 +0000 Subject: Mark the float8 -> int8 cast as implicit. This resolves the problem pointed out by Barry Lind: UPDATE bigintcol = 10000000000 fails because the constant is initially taken as float8. We really need a better way, but it's not gonna happen for 7.3. Also, remove int4reltime() function, which is redundant with the existing binary-compatibility coercion path from int4 to reltime, and probably has been unreachable code for a long while. --- src/backend/utils/adt/nabstime.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/backend/utils/adt/nabstime.c') diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c index d2e73d1d5e5..bb50fb70d4d 100644 --- a/src/backend/utils/adt/nabstime.c +++ b/src/backend/utils/adt/nabstime.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.96 2002/08/04 06:44:47 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.97 2002/09/01 00:58:06 tgl Exp $ * * NOTES * @@ -1735,15 +1735,6 @@ istinterval(char *i_string, * *****************************************************************************/ -Datum -int4reltime(PG_FUNCTION_ARGS) -{ - int32 timevalue = PG_GETARG_INT32(0); - - /* Just coerce it directly to RelativeTime ... */ - PG_RETURN_RELATIVETIME((RelativeTime) timevalue); -} - /* * timeofday - * returns the current time as a text. similar to timenow() but returns -- cgit v1.2.3