How to get int from select

From: "frank ernest" <doark(at)mail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: How to get int from select
Date: 2014-10-01 20:14:00
Message-ID: trinity-aaad10d8-7b5d-4f35-bb10-5c394c5ff3ba-1412194439677@3capp-mailcom-lxa12
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello, as far as I can tell there is only one method of getting rows and columns from a select query and it is with PQgetvalue I wanted to know what byte order I'd be getting out though. I'm planning to use PQexec to pass the parameters in so I'm not sure what typsend and typreceive will be set to. I'm planning the connection to be vialocal host so I don't know if I may need to change the byte order or if I can just cast the value to int. I'm writing in C.
Thanks

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thilo Rießner 2014-10-02 11:43:49 Re: libpq binary data
Previous Message Daniel Verite 2014-10-01 19:45:50 Re: libpq binary data