Skip to content

Commit ee4ae6c

Browse files
committed
Add note that a for loop where the lower bound is greater than the upper
bound is valid but does nothing. suggested by Richard Huxton <dev@archonet.com>
1 parent 29a2014 commit ee4ae6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.21 2003/08/31 17:32:19 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.22 2003/09/03 22:17:07 petere Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -1669,6 +1669,11 @@ FOR i IN REVERSE 10..1 LOOP
16691669
END LOOP;
16701670
</programlisting>
16711671
</para>
1672+
1673+
<para>
1674+
If the lower bound is greater than the upper bound, the loop body is not
1675+
executed at all, but no error is raised.
1676+
</para>
16721677
</sect3>
16731678
</sect2>
16741679

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