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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix overflow check in tm2timestamp (this time for sure).
Date: 2013-03-04 20:15:14
Message-ID: E1UCbn0-0006Pg-8Y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/542eeba26992305d872be699158cb3ab1c2be6e6

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

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-03-05 08:50:39 Re: Materialized views WIP patch
Previous Message Alvaro Herrera 2013-03-04 15:39:37 Re: [HACKERS] Materialized views WIP patch