Search Postgresql Archives

Re: PL/pgSQL: FOUND not set by EXECUTE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/05/04, Brendan Jurd (blakjak@blakjak.sytes.net) wrote:
> I've discovered that in 7.4.2 PL/pgSQL, the FOUND variable is not at all 
> affected by use of the EXECUTE command, even if the statement you pass 
> to EXECUTE would set FOUND to true when run directly.  The documentation 
> doesn't really point this out, and in my opinion, it's an unintuitive 
> behaviour.  Why would executing the command dynamically make a 
> difference to how FOUND is treated?  The statement still "happens" in 
> the end, additional query plan or no.

"FOUND is a local variable; any changes to it affect only the current
PL/pgSQL  function."

HTML manual reference:

    plpgsql-statements.html#PLPGSQL-STATEMENTS-PERFORM

Rory

-- 
Rory Campbell-Lange 
<rory@campbell-lange.net>
<www.campbell-lange.net>

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux