Fix overflow check in tm2timestamp (this time for sure).
authorTom Lane <[email protected]>
Mon, 4 Mar 2013 20:13:31 +0000 (15:13 -0500)
committerTom Lane <[email protected]>
Mon, 4 Mar 2013 20:14:28 +0000 (15:14 -0500)
commitcf678140548b0f0fdef36f314bb84e07e15b8c16
tree6458464478f930c7ec44238cbd08229e819645ad
parente851b1f1b91f82df3662e93be8d9da0909385cd6
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