Skip to content

Commit 1d0de97

Browse files
committed
Doc: fix a couple of erroneous examples.
The example given for anyelement <@ anymultirange didn't return true as claimed; adjust it so it does. In passing, change a couple of sample results where the modern numeric-based logic produces a different number of trailing zeroes than before. Erik Rijkers Discussion: https://postgr.es/m/cc35735d-1ec1-5bb3-9e27-cddbab7afa23@xs4all.nl
1 parent bbb6489 commit 1d0de97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
10461046
</para>
10471047
<para>
10481048
<literal>@ -5.0</literal>
1049-
<returnvalue>5</returnvalue>
1049+
<returnvalue>5.0</returnvalue>
10501050
</para></entry>
10511051
</row>
10521052

@@ -1463,7 +1463,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
14631463
</para>
14641464
<para>
14651465
<literal>log(2.0, 64.0)</literal>
1466-
<returnvalue>6.0000000000</returnvalue>
1466+
<returnvalue>6.0000000000000000</returnvalue>
14671467
</para></entry>
14681468
</row>
14691469

@@ -19876,7 +19876,7 @@ SELECT NULLIF(value, '(none)') ...
1987619876
Is the element contained by the multirange?
1987719877
</para>
1987819878
<para>
19879-
<literal>42 &lt;@ '{[1,7)}'::int4multirange</literal>
19879+
<literal>4 &lt;@ '{[1,7)}'::int4multirange</literal>
1988019880
<returnvalue>t</returnvalue>
1988119881
</para></entry>
1988219882
</row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy