Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ??? - Mailing list pgsql-general

From Tom Lane
Subject Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???
Date
Msg-id 13091.1244667104@sss.pgh.pa.us
Whole thread Raw
In response to Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???  ("Atul Chojar" <achojar@airfacts.com>)
Responses Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
"Atul Chojar" <achojar@airfacts.com> writes:
> So in 8.3.7, the incrementing of the for-loop variable "idx" is being
> ignored; that is not the case in 8.2.7. Is this a new feature of 8.3.7 or a
> bug?

It's the new implementation.  Depending on unspecified implementation
details is a good way to have broken code.

            regards, tom lane

pgsql-general by date:

Previous
From: "Atul Chojar"
Date:
Subject: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???
Next
From: Gus Gutoski
Date:
Subject: help with data recovery from injected UPDATE