Re: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5

Tom Lane <[email protected]> Thu, 09 Jan 2014 10:56:18 -0500
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <[email protected]>
"Raymond C. Rodgers" <[email protected]> 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 ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces