Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 692ed05

Browse files
committed
doc: adjust 'Infinity' example to include minus
This clarifies that quoted infinity values must have the negative signs inside single quotes. Reported-by: Don Morrison
1 parent 8bc4053 commit 692ed05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/datatype.sgml

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

0 commit comments

Comments
 (0)