]> 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:31 +0000 (15:13 -0500)
commit542eeba26992305d872be699158cb3ab1c2be6e6
treedb767a4a7d1e841003d5aa90380c38950bd47ba7
parent0ea1f6e98fc84f1c5f66cc6355f6e20582295e81
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