diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2003-09-03 22:17:07 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2003-09-03 22:17:07 +0000 |
commit | ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046 (patch) | |
tree | a0becd88c34a104fa4cb73e2984405bc810cdb05 | |
parent | 29a20145fd2d1859eb3ec1788240244d0b50f68f (diff) | |
download | postgresql-ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046.tar.gz postgresql-ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046.zip |
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>
-rw-r--r-- | doc/src/sgml/plpgsql.sgml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 4cf4d6c31aa..e9573736ab7 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -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> |