Re: plpgsql EXECUTE will not set FOUND - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: plpgsql EXECUTE will not set FOUND
Date
Msg-id 200911101423.nAAENGb26757@momjian.us
Whole thread Raw
In response to Re: plpgsql EXECUTE will not set FOUND  (David Fetter <david@fetter.org>)
List pgsql-hackers
David Fetter wrote:
> 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>.

Thank you so much.  I was struggling with the phrasing myself.  Updated.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Parsing config files in a directory
Next
From: Tom Lane
Date:
Subject: Re: Query::targetList and RETURNING