plpython integer types

From: Emiliano Amilcarelli <amiemi(at)tin(dot)it>
To: pgsql-novice(at)postgresql(dot)org
Subject: plpython integer types
Date: 2005-11-17 07:54:44
Message-ID: 437C3744.7090701@tin.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi everibody,
a plpython function i'm writing fail with a strange ( to me ) message error:

.....
plan=ply.prepare("intert into text,text1,integer1,text"
values($1,$2,$3,$4)",["text","text","integer","text"])
ply.execute(plan,[var1,var2,var3,var4])
.....

The backend raise an errore saying:
ERROR: type integer does not exist...

I can't understand this....
How can i solve this problem, or, say, how can I cast python variables?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2005-11-17 14:21:58 Re: plpython integer types
Previous Message Michael Fuhr 2005-11-17 04:14:56 Re: Receive a record not a tuple - plpgsql