git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0b56be8) | patch
Fix float4/8 to handle Infinity and Nan consistently, e.g. Infinity is a
Tue, 2 Jan 2007 20:00:50 +0000 (20:00 +0000)
Tue, 2 Jan 2007 20:00:50 +0000 (20:00 +0000)
commit f9ac414c35ea084ff70c564ab2c32adb06d5296f
Fix float4/8 to handle Infinity and Nan consistently, e.g. Infinity is a
valid result from a computation if one of the input values was infinity.
The previous code assumed an operation that returned infinity was an
overflow.

Handle underflow/overflow consistently, and add checks for aggregate
overflow.

Consistently prevent Inf/Nan from being cast to integer data types.

Fix INT_MIN % -1 to prevent overflow.

Update regression results for new error text.

Per report from Roman Kononov.
src/backend/utils/adt/float.c diff | blob | blame | history
src/backend/utils/adt/int.c diff | blob | blame | history
src/test/regress/expected/float4-exp-three-digits.out diff | blob | blame | history
src/test/regress/expected/float4.out diff | blob | blame | history
src/test/regress/expected/float8-exp-three-digits-win32.out diff | blob | blame | history
src/test/regress/expected/float8-small-is-zero.out diff | blob | blame | history
src/test/regress/expected/float8-small-is-zero_1.out diff | blob | blame | history
src/test/regress/expected/float8.out diff | blob | blame | history
src/test/regress/sql/float4.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /