Re: Suggested patch to plpgsql docs (7.4beta)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Suggested patch to plpgsql docs (7.4beta)
Date: 2003-09-03 23:11:48
Message-ID: 200309032311.h83NBmX12468@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Richard Huxton wrote:
> Addition of one paragraph to the end of section 39.7.3.4 "FOR (integer
> variant)"
>
> Note that this is basically a WHILE loop, so if the lower bound is larger than
> the upper bound the loop never executes it's contents:
> FOR i IN 10..1 LOOP
> RAISE NOTICE ''I do not raise a notice %'',i;
> END LOOP;
>
> I wasn't sure and had to check, so I assume others might find this useful too.

I figured everyone would assume that. I know of no language that will
execute a loop listed as 10 ... 1.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Philip Yarra 2003-09-04 00:20:42 Re: Suggested patch to plpgsql docs (7.4beta)
Previous Message Tom Lane 2003-09-03 22:25:16 Re: Do we need "Diagnostics" sections of SQL command reference pages?