Re: Function Returning SETOF Problem

Поиск
Список
Период
Сортировка
От Ron St-Pierre
Тема Re: Function Returning SETOF Problem
Дата
Msg-id 3FE1EFCD.4020006@syscor.com
обсуждение исходный текст
Ответ на Re: Function Returning SETOF Problem  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: restore error - language "plperlu" is not trusted
Следующее
От: Joe Conway
Дата:
Сообщение: Re: How to navigate tree without CONNECT BY?