On Mon, Nov 09, 2009 at 09:01:14PM -0500, Bruce Momjian wrote:
>
> I have applied the attached patch to document that FOUND is not affected
> by EXECUTE, while GET DIAGNOSTICS is.
One minor nit here:
> Index: doc/src/sgml/plpgsql.sgml
> ===================================================================
> RCS file: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v
> retrieving revision 1.143
> diff -c -c -r1.143 plpgsql.sgml
> *** doc/src/sgml/plpgsql.sgml 29 Sep 2009 20:05:29 -0000 1.143
> --- doc/src/sgml/plpgsql.sgml 10 Nov 2009 01:55:33 -0000
> ***************
> *** 1366,1372 ****
>
> <literal>FOUND</literal> is a local variable within each
> <application>PL/pgSQL</application> function; any changes to it
> ! affect only the current function.
> </para>
>
> </sect2>
> --- 1366,1374 ----
>
> <literal>FOUND</literal> is a local variable within each
> <application>PL/pgSQL</application> function; any changes to it
> ! affect only the current function. <literal>FOUND</literal> is not
> ! affected by <literal>EXECUTE</literal>, while <command>GET
> ! DIAGNOSTICS</command> is effected.
The passive form of this phrase would be "is affected," instead of "is
effected," or (my preference) change to an active construction like:
<literal>EXECUTE</literal> changes the output of <command>GET DIAGNOSTICS</command>, but does not change the state
of <literal>FOUND</literal>.
Cheers,
David (Strunk and White ftw! ;)
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate