agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Raymond C. Rodgers <sinful622@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5
Date: Thu, 09 Jan 2014 10:56:18 -0500
Message-ID: <26939.1389282978@sss.pgh.pa.us> (raw)
In-Reply-To: <52CEBF77.5030503@gmail.com>
References: <52CEBF77.5030503@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-interfaces>
"Raymond C. Rodgers" <sinful622@gmail.com> 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
view thread (2+ messages)
Message-ID: <26939.1389282978@sss.pgh.pa.us>
Permalink: ../26939.1389282978@sss.pgh.pa.us/
Also on: postgresql.org/message-id/26939.1389282978@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, sinful622@gmail.com
Subject: Re: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5
In-Reply-To: <26939.1389282978@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox