[libpq] Return value of int - Mailing list pgsql-interfaces

From Henk Jan Barendregt
Subject [libpq] Return value of int
Date
Msg-id 372C1BC4.A71000FD@barendregt.xs4all.nl
Whole thread Raw
Responses Re: [INTERFACES] [libpq] Return value of int
List pgsql-interfaces
Hello,

How can i use libpq to return an int value when i access an INT or INT4
value
For example :
result = PQexec (connection,"SELECT  integervalue FROM integertable");

I have followed the example nr 3 in the pogrammers guide but i still get
a
char *  when i use PQgetvalues

Thanks in advance,


Henk Jan Barendregt


pgsql-interfaces by date:

Previous
From: Edmund Mergl
Date:
Subject: Re: DBD::Pg on UnixWare
Next
From: Tom Lane
Date:
Subject: Re: [INTERFACES] [libpq] Return value of int