pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jp.duval@up-comp.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq - PGexecPrepared - INT4OID binary parameter mode not working
Date: Tue, 06 Feb 2007 00:14:52 -0500
Message-ID: <29681.1170738892@sss.pgh.pa.us> (raw)
In-Reply-To: <1170421878.45c338769edfd@ssl0.ovh.net>
References: <1170421878.45c338769edfd@ssl0.ovh.net>

jp.duval@up-comp.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



view thread (2+ messages)

Message-ID: <29681.1170738892@sss.pgh.pa.us>
Permalink:  ../29681.1170738892@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29681.1170738892@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jp.duval@up-comp.com
  Subject: Re: libpq - PGexecPrepared - INT4OID binary parameter mode not working
  In-Reply-To: <29681.1170738892@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox