Skip site navigation (1) Skip section navigation (2)

pl/python out params

From: Imre Horvath <blemidon(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: pl/python out params
Date: 2010-08-07 14:49:46
Message-ID: 1281192586.5038.3.camel@cytherian.blemidon.dyndns.org (view raw or flat)
Thread:
Lists: 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


Responses

pgsql-sql by date

Next:From: Richard AlbrightDate: 2010-08-07 19:07:42
Subject: Re: pl/python out params
Previous:From: PIC2010Date: 2010-08-07 05:09:42
Subject: 2010 International Conference on Progress in Informatics and Computing(PIC-2010 )

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group