Re: RETURNS SETOF primitive returns results in parentheses

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RETURNS SETOF primitive returns results in parentheses
Дата
Msg-id 10931.1130355933@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: RETURNS SETOF primitive returns results in parentheses  (Mario Splivalo <mario.splivalo@mobart.hr>)
Ответы Re: RETURNS SETOF primitive returns results in parentheses  (Mario Splivalo <mario.splivalo@mobart.hr>)
Список pgsql-sql
Mario Splivalo <mario.splivalo@mobart.hr> writes:
> Wo-ha, makes perfect sense. So, I'd go by with declaring the rec as
> varchar, instead as of a record. Wich is what I should do in the first
> place.

Or just return the correct field out of it.
RETURN NEXT returnValue.fieldname;

I think you may have to do it this way because the FOR loop wants a
record variable.
        regards, tom lane


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

Предыдущее
От: Mario Splivalo
Дата:
Сообщение: Re: RETURNS SETOF primitive returns results in parentheses
Следующее
От: Mario Splivalo
Дата:
Сообщение: Re: RETURNS SETOF primitive returns results in parentheses