Re: PLPGSQL and FOUND stange behaviour after EXECUTE - Mailing list pgsql-bugs

From Tom Lane
Subject Re: PLPGSQL and FOUND stange behaviour after EXECUTE
Date
Msg-id 17803.1096561562@sss.pgh.pa.us
Whole thread Raw
In response to PLPGSQL and FOUND stange behaviour after EXECUTE  (Константин <beholder@mmska.ru>)
Responses Re: PLPGSQL and FOUND stange behaviour after EXECUTE
List pgsql-bugs
Константин <beholder@mmska.ru> writes:
> sql := 'insert into tbl' || suffix::text || ' values (1,1)';
> EXECUTE sql;
> IF NOT FOUND THEN
>  RAISE NOTICE 'NOT INSERTED';
> END IF;

EXECUTE does not set the FOUND flag.  See
http://developer.postgresql.org/docs/postgres/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
        regards, tom lane


pgsql-bugs by date:

Previous
From: Константин
Date:
Subject: PLPGSQL and FOUND stange behaviour after EXECUTE
Next
From: Harald Armin Massa
Date:
Subject: Re: BUG #1271: Installation problems (cannot execute initd b.exe)