]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Change float8-to-int8 conversion to round to nearest, rather than
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2001 22:50:26 +0000 (22:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2001 22:50:26 +0000 (22:50 +0000)
commitb78d1bed07d343542a4d295c3113c73a3379ed93
tree6ea9034397632b7bb2496a51968372fde1a7c1d2
parent5a832218fd24e659826a8e5ca6cdafbdba1dde4b
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.
src/backend/utils/adt/int8.c
src/test/regress/expected/int8-exp-three-digits.out
src/test/regress/expected/int8.out
src/test/regress/sql/int8.sql