Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
Lou Picciano > > -- > *From: *"c k" > *To: *"Lou Picciano" > *Cc: *"pgsql-admin" , > pgsql-gene...@postgresql.org > *Sent: *Saturday, December 3, 2011 1:01:39 PM > *Subject: *Re: [ADMIN] returning results from plsql

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread Lou Picciano
erations on something not yet quite a string! Pythons are dangerous. Be careful! Lou Picciano - Original Message - From: "c k" To: "Lou Picciano" Cc: "pgsql-admin" , pgsql-gene...@postgresql.org Sent: Saturday, December 3, 2011 1:01:39 PM Subject: Re: [AD

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
rom $results. >> >> Because, yes, without such a line, python will only return the object >> reference. >> >> Lou Picciano >> >> -- >> *From: *"c k" >> *To: *"pgsql-admin" , >> pgsql-gene...@pos

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
python will only return the object > reference. > > Lou Picciano > > -- > *From: *"c k" > *To: *"pgsql-admin" , > pgsql-gene...@postgresql.org > *Sent: *Saturday, December 3, 2011 12:50:16 PM > *Subject: *[ADMIN] return

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread Lou Picciano
ql-gene...@postgresql.org Sent: Saturday, December 3, 2011 12:50:16 PM Subject: [ADMIN] returning results from plsql function to plpythonu function Hello friends, I am checking some logic which includes two functions. One is plsql function which returns text. Second function is plpythonu and cont

[ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
Hello friends, I am checking some logic which includes two functions. One is plsql function which returns text. Second function is plpythonu and contains one statement which outputs notice e.g. results = plpy.execute("select * from software.func1();") plpy.notice("%s" % col for col in results[0])