Re: libpq - PGexecPrepared - INT4OID binary parameter mode not working

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jp(dot)duval(at)up-comp(dot)com
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq - PGexecPrepared - INT4OID binary parameter mode not working
Date: 2007-02-06 05:14:52
Message-ID: 29681.1170738892@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

jp(dot)duval(at)up-comp(dot)com writes:
> Could someone help me on understanding why PQexecParams is not working properly
> while using parameters in binary mode?

I think you have forgotten to convert the values to network byte order.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Muruganantham M 2007-02-07 14:14:37 Help needed
Previous Message Michael Fuhr 2007-02-02 15:09:04 Re: PQputCopyData and Rollback/Commit