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

[NOOB] try tu put a number with pqexecprepare

From: elekis <elekis(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: [NOOB] try tu put a number with pqexecprepare
Date: 2008-11-28 09:28:54
Message-ID: 78316ea80811280128q7042789em3f5f34fe9861093@mail.gmail.com (view raw or flat)
Thread:
Lists: 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/

Responses

pgsql-general by date

Next:From: Abdul RahmanDate: 2008-11-28 10:11:34
Subject: Re: PgAgent Job Scehduler is NOT running
Previous:From: AndrusDate: 2008-11-28 09:15:42
Subject: Re: [GENERAL] Expected password response, got message type 88

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