Enable pl/python to return records based on multiple OUT params

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Enable pl/python to return records based on multiple OUT params
Дата
Msg-id 1225512810.8122.7.camel@huvostro
обсуждение исходный текст
Ответы Re: Enable pl/python to return records based on multiple OUT params
Список pgsql-hackers
attached is a patch which enables plpython to recognize function with
multiple OUT params as returning a record


py=# create or replace function addsub( in i1 int, in i2 int,
py=#   out o1 int, out o2 int) as
py=# $$
py$# return i1 + i2, i1-i2
py$# $$  language plpythonu;
CREATE FUNCTION
py=#
py=# select * from addsub(1,2);
 o1 | o2
----+----
  3 | -1
(1 row)


This version is quite rough, though passes tests here.

I will clean it up more during commitfest.

--
------------------------------------------
Hannu Krosing   http://www.2ndQuadrant.com
PostgreSQL Scalability and Availability
   Services, Consulting and Training

Вложения

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

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: Please make sure your patches are on the wiki page
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: Re: Updated interval patches (SQL std output, ISO8601 intervals, and interval rounding)