Re: PL/pgSQL and SETOF

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: PL/pgSQL and SETOF
Дата
Msg-id 20071130171442.GX1955@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на PL/pgSQL and SETOF  (Cultural Sublimation <cultural_sublimation@yahoo.com>)
Ответы Re: PL/pgSQL and SETOF
Список pgsql-general
On Fri, Nov 30, 2007 at 09:09:28AM -0800, Cultural Sublimation wrote:
> Postgresql complains that "set-valued
> function called in context that cannot accept a set".  Anyway, what am
> I doing wrong, and what is the simplest way of translating get_items
> in PL/pgSQL?

I would guess you're calling it like:

  SELECT get_items2();

whereas, you should call set returning functions like:

  SELECT * FROM get_items2();


  Sam

В списке pgsql-general по дате отправления:

Предыдущее
От: Guido Neitzer
Дата:
Сообщение: Re: Linux v.s. Mac OS-X Performance
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: PL/pgSQL and SETOF