-
- Downloads
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.
Showing
- src/backend/utils/adt/int8.c 11 additions, 11 deletionssrc/backend/utils/adt/int8.c
- src/test/regress/expected/int8-exp-three-digits.out 0 additions, 10 deletionssrc/test/regress/expected/int8-exp-three-digits.out
- src/test/regress/expected/int8.out 0 additions, 10 deletionssrc/test/regress/expected/int8.out
- src/test/regress/sql/int8.sql 0 additions, 1 deletionsrc/test/regress/sql/int8.sql
Please register or sign in to comment