mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 01:11:16 +02:00
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>
This commit is contained in:
parent
29a20145fd
commit
ee4ae6ceb2
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.21 2003/08/31 17:32:19 petere Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.22 2003/09/03 22:17:07 petere Exp $
|
||||
-->
|
||||
|
||||
<chapter id="plpgsql">
|
||||
@ -1669,6 +1669,11 @@ FOR i IN REVERSE 10..1 LOOP
|
||||
END LOOP;
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If the lower bound is greater than the upper bound, the loop body is not
|
||||
executed at all, but no error is raised.
|
||||
</para>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user