returning results from plsql function to plpythonu function

Поиск
Список
Период
Сортировка
От c k
Тема returning results from plsql function to plpythonu function
Дата
Msg-id CAN2Y=uPoWPZXJrw7djh6PwAqPTtc__-7LZH3O-7nn3Ctic=Psg@mail.gmail.com
обсуждение исходный текст
Ответы Re: returning results from plsql function to plpythonu function  (Lou Picciano <loupicciano@comcast.net>)
Список pgsql-admin
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])

The same result is returned as a final return as notice. But it does not outputs the correct result which is returned from func1 (text in this case). Rather it outputs notice as
NOTICE:  <generator object <genexpr> at 0xb578cb6c>
It doesn't prints the correct notice even by using
plpy.notice("%s" %results)

What can be the problem here?
Thanks for help.


C P Kulkarni

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

Предыдущее
От: "Tank.zhang"
Дата:
Сообщение: Re: Regarding postgres 9.1 with Redhat Linux
Следующее
От: Lou Picciano
Дата:
Сообщение: Re: returning results from plsql function to plpythonu function