]> granicus.if.org Git - postgresql/commit
tm2timestamp should return -1, not elog, on overflow. (In the backend
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Jul 2003 18:21:14 +0000 (18:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Jul 2003 18:21:14 +0000 (18:21 +0000)
commit841b4a2d5552fcee2333dff53e66052fbee7bd22
tree3daf58ab3f61b70db10f8403c3572bbb25734159
parent3abbce39d5b6988f06c432dc1a18da1d7dd2f9c3
tm2timestamp should return -1, not elog, on overflow.  (In the backend
this is merely an API inconsistency, but in ecpg it's fatal.)  Also,
fix misconceived overflow test in HAVE_INT64_TIMESTAMP case.
src/backend/utils/adt/timestamp.c
src/interfaces/ecpg/pgtypeslib/timestamp.c