]> granicus.if.org Git - postgresql/commit
Fix overflow check in tm2timestamp (this time for sure).
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Mar 2013 20:13:31 +0000 (15:13 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Mar 2013 20:13:49 +0000 (15:13 -0500)
commitfa852303f0cda557e620af775c2e96b56eb365ba
tree7d29039555a9b4b5c4f38291334addd0ad02d726
parentd4f4bdf23a47dc2b6122195bbff4b09c80e7e2f5
Fix overflow check in tm2timestamp (this time for sure).

I fixed this code back in commit 841b4a2d5, but didn't think carefully
enough about the behavior near zero, which meant it improperly rejected
1999-12-31 24:00:00.  Per report from Magnus Hagander.
src/backend/utils/adt/timestamp.c
src/interfaces/ecpg/pgtypeslib/timestamp.c