aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-09-01 00:58:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-09-01 00:58:07 +0000
commit3c49c4b1520fd29dea570b4cde8a66bc5893078c (patch)
treeba773acc0e6a05f7f055f685b92bcf23868b6342 /src/backend/utils/adt
parent845a6c3acccea0ec34e70808787aa7d431b0d96d (diff)
downloadpostgresql-3c49c4b1520fd29dea570b4cde8a66bc5893078c.tar.gz
postgresql-3c49c4b1520fd29dea570b4cde8a66bc5893078c.zip
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.
Diffstat (limited to 'src/backend/utils/adt')
-rw-r--r--src/backend/utils/adt/nabstime.c11
1 files changed, 1 insertions, 10 deletions
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