Skip site navigation (1) Skip section navigation (2)

plpython integer types

From: Emiliano Amilcarelli <amiemi(at)tin(dot)it>
To: pgsql-novice-owner(at)postgresql(dot)org
Cc: MEI ILARIO <ilario(dot)mei(at)vtin(dot)it>
Subject: plpython integer types
Date: 2005-11-16 14:09:09
Message-ID: 437B3D85.9090301@tin.it (view raw or flat)
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?

pgsql-novice by date

Next:From: William YuDate: 2005-11-16 16:02:52
Subject: Re: Application using PostgreSQL as a back end (experienced programmers
Previous:From: Michael GlaesemannDate: 2005-11-16 01:33:17
Subject: Re: createdb Question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group