Error in PlPython procedure

From: mars_osrp <mars_osrp(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Error in PlPython procedure
Date: 2008-02-20 23:53:14
Message-ID: 15601869.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi All,

I am using PlPython procedure to insert data in a table:

plan = plpy.execute("insert into test(id,name) values(1 , 'test_py')")

I am getting error:
ERROR: invalid input syntax for integer: "<PLyResult object at 0x374a5a70>"

In fact preparing a plan and passing a list of values for columns is also
giving same error.

What is correct valid input syntax for integer in PlPython?

Mars_osrp
--
View this message in context: http://www.nabble.com/Error-in-PlPython-procedure-tp15601869p15601869.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Davies 2008-02-21 00:19:48 ts_headline
Previous Message SunWuKung 2008-02-20 21:00:12 Re: Vacuous errors in pg_dump ... | pg_restore pipeline