Re: plpython return setof and yield

Поиск
Список
Период
Сортировка
От Nuno Mota
Тема Re: plpython return setof and yield
Дата
Msg-id d79bf9b30908171155h75f4f3cbq9daa41960743cd0b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpython return setof and yield  (Adrian Klaver <aklaver@comcast.net>)
Ответы Re: plpython return setof and yield
Список pgsql-general
I have fixed the problem populating a list and returning it.

Well I guess I have to learn a litte bit more of python to understand how to use yield when using multiple result sets.

Thank you anyway


On Mon, Aug 17, 2009 at 7:23 PM, Adrian Klaver <aklaver@comcast.net> wrote:


----- "Nuno Mota" <nmota@net-bo.com> wrote:

> Thank you very much,
>
> Can i ask one more question ?
>
> How do I declare the correct result set to return, this in first
> example code, is it possible ?
>
> Thank you again,
> Nuno Mota
>
>

From here:
http://www.postgresql.org/docs/8.3/interactive/plpython-funcs.html

"The result is returned from the Python code in the usual way, with return or yield (in case of a result-set statement). "


Adrian Klaver
aklaver@comcast.net



--
Nuno Mota <nmota@net-bo.com>

Management Solutions for POS
Tlf:  351 225322000
Mob:  351 936272176
Fax:  351 226177662
http://www.net-bo.com

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: psql command line editor
Следующее
От: Nuno Mota
Дата:
Сообщение: Re: plpython return setof and yield