Commit ee4ae6ce authored by Peter Eisentraut's avatar Peter Eisentraut

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>
parent 29a20145
<!-- <!--
$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 ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment