Re: [GENERAL] Getting result from EXECUTE

2007-09-10 Thread Pavel Stehule
Hello execute doesn't set FOUND variable, but sets diagnostics variables. you can: create table foo(a integer); insert into foo values(10),(20); create or replace function f() returns void as $$declare rc integer; begin execute 'update foo set a = a'; get diagnostics rc = row_count; raise notice

Re: [GENERAL] Getting result from EXECUTE

2007-09-09 Thread Sibte Abbas
On 9/8/07, Robert Fitzpatrick <[EMAIL PROTECTED]> wrote: > > I have a trigger function that I want to apply to several tables, hence > my use of TG_RELNAME. I just want the record to get inserted if an > UPDATE comes from my view rule if the record for the client doesn't > already exist. This is wh

[GENERAL] Getting result from EXECUTE

2007-09-08 Thread Robert Fitzpatrick
I have a trigger function that I want to apply to several tables, hence my use of TG_RELNAME. I just want the record to get inserted if an UPDATE comes from my view rule if the record for the client doesn't already exist. This is what I have, but I'm finding the FOUND is not returned for EXECUTE. H