From bfd6f52b0e0f1c1d579bf385dedfebca229dfcf5 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Fri, 12 Mar 2004 00:25:43 +0000 Subject: 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 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 5f82a784851..c6093b84637 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ @@ -359,6 +359,23 @@ SELECT 'foo' 'bar'; + + In addition, there are several special constant values that are + accepted as numeric constants. The float4 and + float8 types allow the following special constants: + +Infinity +-Infinity +NaN + + These represent the IEEE 754 special values + infinity, negative infinity, and + not-a-number, respectively. The + numeric type only allows NaN, whereas + the integral types do not allow any of these constants. Note that + these constants are recognized in a case-insensitive manner. + + integer bigint -- cgit v1.2.3