Thread: pgsql: Fix datetime input functions to correctly detect integer overflow

pgsql: Fix datetime input functions to correctly detect integer overflow

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        datetime.c (r1.174.2.3 -> r1.174.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.174.2.3&r2=1.174.2.4)