OSDN Git Service

Mark the float8 -> int8 cast as implicit. This resolves the problem
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Sep 2002 00:58:07 +0000 (00:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Sep 2002 00:58:07 +0000 (00:58 +0000)
commit3c49c4b1520fd29dea570b4cde8a66bc5893078c
treeba773acc0e6a05f7f055f685b92bcf23868b6342
parent845a6c3acccea0ec34e70808787aa7d431b0d96d
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
src/include/catalog/pg_cast.h
src/include/catalog/pg_proc.h
src/include/utils/nabstime.h