pl/python out params

Поиск
Список
Период
Сортировка
От Imre Horvath
Тема pl/python out params
Дата
Msg-id 1281192586.5038.3.camel@cytherian.blemidon.dyndns.org
обсуждение исходный текст
Ответы Re: pl/python out params  (Richard Albright <ralbright@insiderscore.com>)
Re: pl/python out params  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi!

Is there a way to use output parameters with a pl/python fucntion?
I've tried with no luck: if I define out parameters, it says return type
must be record, if I define a record return type, I get an error on
executing that pl/python doesn't support record return type...

My simple test func is:

create or replace function outtest(out i integer, out j text)returns boolean as
$BODY$
i = 1
j = 'something'
return True
$BODY$
language plpythonu;

Thanks in advance:
Imre Horvath



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

Предыдущее
От: "Marc Mamin"
Дата:
Сообщение: Re: workaround for missing ROWNUM feature with the help of GUC variables
Следующее
От: LaboRecherche
Дата:
Сообщение: Using SKYLINE command on PostgreSQL