Fix datetime input functions to correctly detect integer overflow when
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Jun 2008 19:34:09 +0000 (19:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Jun 2008 19:34:09 +0000 (19:34 +0000)
commit1b724e0db6e7b8b04861be30434442eb08659b5f
treee5d914d8b88209a25fa179430dcb741a9e70f7db
parentdd1add272a3156ab1441819dcfd4d6c050e1e5a5
Fix datetime input functions to correctly detect integer overflow when
running on a 64-bit platform ... strtol() will happily return 64-bit
output in that case.  Per bug #4231 from Geoff Tolley.
src/backend/utils/adt/datetime.c