pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Norman Megill <nmegill@bostoninformation.com>
To: pgsql-docs@postgresql.org
Subject: FOR i IN REVERSE documentation error?
Date: Sun, 07 Oct 2001 23:08:09 -0400
Message-ID: <3BC11899.F5DE8D90@bostoninformation.com> (raw)

In the 7.2 documentation, Section 23.2.6.2, at
http://postgresql.crimelabs.net/devel-corner/docs/postgres/plpgsql-description.html

it shows the example:

  FOR i IN REVERSE 1..10 LOOP
     -- some expressions here
  END LOOP;

This loop does nothing.  I think it should be:

  FOR i IN REVERSE 10..1 LOOP
     -- some expressions here
  END LOOP;

which does work (10 iterations).

Note:  This error is also in the 7.1 documentation.  I tested
it in 7.1 but not 7.2.

Thank you,
Norm Megill



view thread (2+ messages)  latest in thread

Message-ID: <3BC11899.F5DE8D90@bostoninformation.com>
Permalink:  ../3BC11899.F5DE8D90@bostoninformation.com/
Also on:    postgresql.org/message-id/3BC11899.F5DE8D90@bostoninformation.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: nmegill@bostoninformation.com
  Subject: Re: FOR i IN REVERSE documentation error?
  In-Reply-To: <3BC11899.F5DE8D90@bostoninformation.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox