From ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 3 Sep 2003 22:17:07 +0000 Subject: [PATCH] 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 --- doc/src/sgml/plpgsql.sgml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 4cf4d6c31a..e9573736ab 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. + -- 2.39.5