From: | Terry Lee Tucker <terry(at)esc1(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Question regarding FOUND |
Date: | 2005-09-02 14:42:25 |
Message-ID: | 200509021042.25492.terry@esc1.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Apparently, the FOUND variable is set to false regardless of the outcome of
the dynamic update statement. I placed a call to GET DIAGNOSTICS var =
ROW_COUNT. It returned 1. Question is, was that the result of a direct
update previously coded in the same trigger, or is that the result of the
dynamic update statement performed with EXECUTE?
On Friday 02 September 2005 08:51 am, Terry Lee Tucker saith:
> Greetings,
>
> I have a question regarding the use of the FOUND variable within a plpgsql
> function. I have a trigger fuction which executes a dynamic update on a
> different table with the EXECUTE statement. Here's the question:
>
> Will the FOUND variable be set, when using EXECUTE, as it would be with a
> normal UPDATE statement?
>
> Thanks for the input...
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
Quote: 87
"To those who cite the First Amendment as reason for excluding God
from more and more of our institutions every day, I say: The First
Amendment of the Constitution was not written to protect the people of
this country from religious values; it was written to protect
religious values from government tyranny."
--Ronald Reagan
Work: 1-336-372-6812
Cell: 1-336-363-4719
email: terry(at)esc1(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-09-02 14:47:12 | Re: Question regarding FOUND |
Previous Message | Matt Miller | 2005-09-02 14:34:50 | Re: PL/pgSQL: EXCEPTION NOSAVEPOINT |