]> granicus.if.org Git - postgresql/commitdiff
doc: adjust 'Infinity' example to include minus
authorBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2017 02:22:11 +0000 (22:22 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2017 02:22:18 +0000 (22:22 -0400)
This clarifies that quoted infinity values must have the negative signs
inside single quotes.

Reported-by: Don Morrison
doc/src/sgml/datatype.sgml

index e2f8dee7b6691f119a290bd1b572f6ab17a29414..7a546a0399b28f1c7066b0e97987b211c939f9f6 100644 (file)
@@ -756,7 +756,7 @@ FROM generate_series(-3.5, 3.5, 1) as x;
      floating-point arithmetic does not follow IEEE 754, these values
      will probably not work as expected.)  When writing these values
      as constants in an SQL command, you must put quotes around them,
-     for example <literal>UPDATE table SET x = 'Infinity'</>.  On input,
+     for example <literal>UPDATE table SET x = '-Infinity'</>.  On input,
      these strings are recognized in a case-insensitive manner.
     </para>