]> granicus.if.org Git - postgresql/commitdiff
Add note that a for loop where the lower bound is greater than the upper
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 3 Sep 2003 22:17:07 +0000 (22:17 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 3 Sep 2003 22:17:07 +0000 (22:17 +0000)
bound is valid but does nothing.

suggested by Richard Huxton <dev@archonet.com>

doc/src/sgml/plpgsql.sgml

index 4cf4d6c31aafbe15621a876021a023e31f490976..e9573736ab794c5a974001775495f689735cc5e3 100644 (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"> 
@@ -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>