Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1Hy4-0006Xh-RJ for pgsql-interfaces@arkaria.postgresql.org; Thu, 09 Jan 2014 15:56:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W1Hy4-00043L-9Y for pgsql-interfaces@arkaria.postgresql.org; Thu, 09 Jan 2014 15:56:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1Hy2-00041z-Uj for pgsql-interfaces@postgresql.org; Thu, 09 Jan 2014 15:56:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1Hy0-0003XH-8Q for pgsql-interfaces@postgresql.org; Thu, 09 Jan 2014 15:56:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s09FuIMm026940; Thu, 9 Jan 2014 10:56:18 -0500 From: Tom Lane To: "Raymond C. Rodgers" cc: pgsql-interfaces@postgresql.org Subject: Re: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5 In-reply-to: <52CEBF77.5030503@gmail.com> References: <52CEBF77.5030503@gmail.com> Comments: In-reply-to "Raymond C. Rodgers" message dated "Thu, 09 Jan 2014 10:25:43 -0500" Date: Thu, 09 Jan 2014 10:56:18 -0500 Message-ID: <26939.1389282978@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org "Raymond C. Rodgers" writes: > I haven't been working with libpq-fe for long (only the last month or > so) but I've had the good fortune of being able to figure out and solve > most problems I've encountered within a few minutes to an hour, but this > one is different. I think you're going to kick yourself: > PQexecPrepared(DB,"insertData",12,value,format,length,1); You've given "format" and "length" in the wrong order, so it's trying to interpret some field length as a format code. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces