Re: PL/pgSQL 'i = i + 1' Syntax - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PL/pgSQL 'i = i + 1' Syntax
Date
Msg-id 14846.1147834322@sss.pgh.pa.us
Whole thread Raw
In response to Re: PL/pgSQL 'i = i + 1' Syntax  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PL/pgSQL 'i = i + 1' Syntax
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> It ought to be illegal to modify the loop control variable anyway, 
> IMNSHO - it certainly is in Ada, the distant antecedent of pl/pgsql.

Distant ancestors aren't particularly relevant here.  What plpgsql tries
to be is a ripoff^H^H^H^H^H^Hsincere flattery of Oracle's PL/SQL.  If
modifying the loop variable is disallowed in PL/SQL, I'm all for
disallowing it in plpgsql, otherwise not.  Anyone have a recent copy of
Oracle to try it on?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_dump and backslash escapes
Next
From: "Gurjeet Singh"
Date:
Subject: Re: audit table containing Select statements submitted