Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BEBDE9FB329 for ; Tue, 6 Feb 2007 01:30:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 83978-06-2 for ; Tue, 6 Feb 2007 01:30:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 66F199FB375 for ; Tue, 6 Feb 2007 01:14:53 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l165Eq86029682; Tue, 6 Feb 2007 00:14:52 -0500 (EST) To: jp.duval@up-comp.com cc: pgsql-interfaces@postgresql.org Subject: Re: libpq - PGexecPrepared - INT4OID binary parameter mode not working In-reply-to: <1170421878.45c338769edfd@ssl0.ovh.net> References: <1170421878.45c338769edfd@ssl0.ovh.net> Comments: In-reply-to jp.duval@up-comp.com message dated "Fri, 02 Feb 2007 14:11:18 +0100" Date: Tue, 06 Feb 2007 00:14:52 -0500 Message-ID: <29681.1170738892@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/4 X-Sequence-Number: 6424 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