From: Peter Eisentraut Date: Wed, 3 Sep 2003 22:17:07 +0000 (+0000) Subject: Add note that a for loop where the lower bound is greater than the upper X-Git-Tag: REL7_4_BETA3~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046;p=thirdparty%2Fpostgresql.git 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 --- 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 @@ @@ -1669,6 +1669,11 @@ FOR i IN REVERSE 10..1 LOOP END LOOP; + + + If the lower bound is greater than the upper bound, the loop body is not + executed at all, but no error is raised. +