pgsql: Fix overflow check in tm2timestamp (this time for sure).

Started by Tom Laneover 13 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3a779366025504d6993e6a3b1281cd114a0abb71

Modified Files
--------------
src/backend/utils/adt/timestamp.c | 5 +++--
src/interfaces/ecpg/pgtypeslib/timestamp.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers