Обсуждение: pgsql/src backend/utils/adt/int8.c test/regres ...

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

pgsql/src backend/utils/adt/int8.c test/regres ...

От
Tom Lane
Дата:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/01/26 17:50:26

Modified files:
    src/backend/utils/adt: int8.c
    src/test/regress/expected: int8-exp-three-digits.out int8.out
    src/test/regress/sql: int8.sql

Log message:
    Change float8-to-int8 conversion to round to nearest, rather than
    truncating to integer.  Remove regress test that checks whether
    4567890123456789 can be converted to float without loss; since that's
    52 bits, it's on the hairy edge of failing with IEEE float8s, and indeed
    rint seems to give platform-dependent results for it.