FOR i IN REVERSE documentation error?

From: Norman Megill <nmegill(at)bostoninformation(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: FOR i IN REVERSE documentation error?
Date: 2001-10-08 03:08:09
Message-ID: 3BC11899.F5DE8D90@bostoninformation.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Christopher Kings-Lynne 2001-10-08 08:03:06 Wrong manual info?
Previous Message Vince Vielhaber 2001-10-07 15:12:07 Re: PostgreSQL Logo?