Обсуждение: pgsql: Fix datetime input functions to correctly detect integer overflow

Поиск
Список
Период
Сортировка

pgsql: Fix datetime input functions to correctly detect integer overflow

От
tgl@postgresql.org (Tom Lane)
Дата:
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_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        datetime.c (r1.137.4.5 -> r1.137.4.6)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.137.4.5&r2=1.137.4.6)