PLPGSQL Returning Records

Поиск
Список
Период
Сортировка
От Alex
Тема PLPGSQL Returning Records
Дата
Msg-id 3FB9C6CD.8030908@meerkatsoft.com
обсуждение исходный текст
Ответы Re: PLPGSQL Returning Records  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
Hi,
I am trying to return a recod from from my function but for some reason
it does not work.

Here is may problem. I use a for loop to generate the first batch of
records. Once the loop is completed I want to add another record. But at
that point fails.

....

FOR  rec IN SELECT ....
LOOP

  RETURN NEXT r;
END LOOP;

do some assignments
RETURN r;

....

It seems that the function does not return anything after the loop. Can
anyone help me on that ?

Thanks
Alex





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

Предыдущее
От: Gianni Mariani
Дата:
Сообщение: building 7.4 with plperl
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: snort, acid and postgres