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: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql

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
i = 1
j = 'something'
return True
language plpythonu;

Thanks in advance:
Imre Horvath


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-2017 The PostgreSQL Global Development Group