PL/pgSQL bug: FOUND variable is not updated correct with EXECUTE

Started by Vitaly Belmanabout 21 years ago3 messagesgeneral
Jump to latest
#1Vitaly Belman
vitalyb@gmail.com

Doing an EXECUTE for a query which returns results still yields 'f'
for the FOUND variable. "GET DIAGNOSTICS" on the other hand, works
fine,

Using version 8 on Win32.

--
ICQ: 1912453
AIM: VitalyB1984
MSN: tmdagent@hotmail.com
Yahoo!: VitalyBe

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Vitaly Belman (#1)
Re: PL/pgSQL bug: FOUND variable is not updated correct with EXECUTE

Vitaly Belman <vitalyb@gmail.com> writes:

Doing an EXECUTE for a query which returns results still yields 'f'
for the FOUND variable.

This is not a bug. Read the list of statements that update FOUND.
EXECUTE is not one of them.

regards, tom lane

#3Neil Conway
neilc@samurai.com
In reply to: Tom Lane (#2)
Re: PL/pgSQL bug: FOUND variable is not updated correct

On Tue, 2005-02-08 at 18:11 -0500, Tom Lane wrote:

Vitaly Belman <vitalyb@gmail.com> writes:

Doing an EXECUTE for a query which returns results still yields 'f'
for the FOUND variable.

This is not a bug. Read the list of statements that update FOUND.
EXECUTE is not one of them.

See also previous discussion on this topic:

http://archives.postgresql.org/pgsql-bugs/2004-10/msg00001.php

-Neil