FOR i IN REVERSE documentation error?

Поиск
Список
Период
Сортировка
От Norman Megill
Тема FOR i IN REVERSE documentation error?
Дата
Msg-id 3BC11899.F5DE8D90@bostoninformation.com
обсуждение исходный текст
Ответы Re: FOR i IN REVERSE documentation error?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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

В списке pgsql-docs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Wrong manual info?
Следующее
От: Jerome Lessard
Дата:
Сообщение: chown needed ..