Re: [BUGS] Bug #913: plpgsql function fails on second call

2003-03-18 Thread Stephan Szabo
On Tue, 18 Mar 2003 [EMAIL PROTECTED] wrote: > create temp table ab as > select a.value as a_value, b.value as b_value > from a left outer join b > on a.id = b.id; > > for row in select * from ab loop > return next row; > end loop; >

Re: [BUGS] Bug #913: plpgsql function fails on second call

2003-03-18 Thread Bruce Momjian
You have to use EXECUTE when creating a temp table in a function --- see FAQ on it. --- [EMAIL PROTECTED] wrote: > John Duffy ([EMAIL PROTECTED]) reports a bug with a severity of 1 > The lower the number the more severe it i

[BUGS] Bug #913: plpgsql function fails on second call

2003-03-18 Thread pgsql-bugs
John Duffy ([EMAIL PROTECTED]) reports a bug with a severity of 1 The lower the number the more severe it is. Short Description plpgsql function fails on second call Long Description A function containing a left outer join declared to return a set works correctly when first called. A second call

Re: [BUGS] Solution for bug #899

2003-03-18 Thread Laurent FAILLIE
--- Bruce Momjian <[EMAIL PROTECTED]> a écrit : > > Your patch has been added to the PostgreSQL > unapplied patches list at: > > http://momjian.postgresql.org/cgi-bin/pgpatches > > I will try to apply it within the next 48 hours. Ok, thanks a lot. Have a nice day. Laurent = The m