Re: Function Returning SETOF Problem - Mailing list pgsql-general

From Ron St-Pierre
Subject Re: Function Returning SETOF Problem
Date
Msg-id 3FE1EFCD.4020006@syscor.com
Whole thread Raw
In response to Re: Function Returning SETOF Problem  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-general
Stephan Szabo wrote:
<snip>

>For the first one, you're making a query string that has lines like
> foo = rec.bar
>where you really want
> foo = <value of rec.bar>
>
>So for execute you want something like
> '' ... foo = '' || rec.bar || '' ... ''
>(possibly requiring casts)
>
>
</snip>
Okay, fixed that ...

<snip>

>As Tom said, this looks like something else.  Do you have a rule on
>currentlist that also does an update on currentlist, perhaps forcing
>certain values or something?
>
>
</snip>

Yes, I did have a rule on the table which I had completely forgotten about. I removed it and the function works
properlynow. 
Thanks Stephan and Tom!

Ron



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: restore error - language "plperlu" is not trusted
Next
From: Joe Conway
Date:
Subject: Re: How to navigate tree without CONNECT BY?