]> granicus.if.org Git - postgresql/commit
Allow 'Infinity' and '-Infinity' as input to the float4 and float8
authorNeil Conway <neilc@samurai.com>
Fri, 12 Mar 2004 00:25:43 +0000 (00:25 +0000)
committerNeil Conway <neilc@samurai.com>
Fri, 12 Mar 2004 00:25:43 +0000 (00:25 +0000)
commitbfd6f52b0e0f1c1d579bf385dedfebca229dfcf5
treed93225b282bd93d404205aaa8138ce262ae4cbdc
parentfe6e9221360116e440fc28e45b083eb0811682cd
Allow 'Infinity' and '-Infinity' as input to the float4 and float8
types. Update the regression tests and the documentation to reflect
this. Remove the UNSAFE_FLOATS #ifdef.

This is only half the story: we still unconditionally reject
floating point operations that result in +/- infinity. See
recent thread on -hackers for more information.
doc/src/sgml/syntax.sgml
src/backend/utils/adt/float.c
src/include/pg_config_manual.h
src/test/regress/expected/float4.out
src/test/regress/expected/float8.out
src/test/regress/sql/float4.sql
src/test/regress/sql/float8.sql