[NOOB] try tu put a number with pqexecprepare - Mailing list pgsql-general

From elekis
Subject [NOOB] try tu put a number with pqexecprepare
Date
Msg-id 78316ea80811280128q7042789em3f5f34fe9861093@mail.gmail.com
Whole thread Raw
Responses Re: [NOOB] try tu put a number with pqexecprepare  ("Daniel Verite" <daniel@manitou-mail.org>)
List pgsql-general
hi,

I try to use postgresql with a simple example using parameter, (so
with pqprepare and pqexecprepare).
I have trouble to put number.

I put the code here

http://pastebin.com/m1860cc27


I symply try to put the number 5 for the second column, and after that
read the line.


but the database, I have taht
83886080 in place of 5.



any idea??


PS: the oid come from the pg_type.h  but if I include that in the file
I have a error with the node.h (dunno why)


thanks

a++

--
http://deathboater.blogspot.com/

pgsql-general by date:

Previous
From: "Willy-Bas Loos"
Date:
Subject: Re: [pgadmin-support] Separate Sessions?? (View data <-> Query tool)
Next
From: Abdul Rahman
Date:
Subject: Re: [ADMIN] PgAgent Job Scehduler is NOT running