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:
Peter Eisentraut 2003-09-03 22:17:07 +00:00
parent 29a20145fd
commit ee4ae6ceb2
1 changed files with 6 additions and 1 deletions

View File

@ -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"> <chapter id="plpgsql">
@ -1669,6 +1669,11 @@ FOR i IN REVERSE 10..1 LOOP
END LOOP; END LOOP;
</programlisting> </programlisting>
</para> </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> </sect3>
</sect2> </sect2>