Re: [GENERAL] Examples of using PQexecParams

2009-12-05 Thread Daniel
> check out libpqtypes (http://libpqtypes.esilo.com).  It does all the > binary stuff for you (which you don't need to to with PQexecParams). > thanks, but how do you install it on Gentoo, there is no ebuild. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

Re: [GENERAL] Examples of using PQexecParams

2009-12-04 Thread Merlin Moncure
On Fri, Dec 4, 2009 at 1:47 PM, Daniel wrote: > I was looking for examples of using PQexecParams but all I found was > this: http://sepp.oetiker.ch/postgresql-8.2.3-ds/libpq-example.html > > /* Convert integer value "2" to network byte order */ >    binaryIntVal = htonl((uint32_t) 2); > /* Set up

Re: [GENERAL] Examples of using PQexecParams

2009-12-04 Thread John R Pierce
Daniel wrote: I was looking for examples of using PQexecParams but all I found was this: http://sepp.oetiker.ch/postgresql-8.2.3-ds/libpq-example.html /* Convert integer value "2" to network byte order */ binaryIntVal = htonl((uint32_t) 2); /* Set up parameter arrays for PQexecParams */

[GENERAL] Examples of using PQexecParams

2009-12-04 Thread Daniel
I was looking for examples of using PQexecParams but all I found was this: http://sepp.oetiker.ch/postgresql-8.2.3-ds/libpq-example.html /* Convert integer value "2" to network byte order */ binaryIntVal = htonl((uint32_t) 2); /* Set up parameter arrays for PQexecParams */ paramValues[0] =