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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5
Дата
Msg-id 26939.1389282978@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5  ("Raymond C. Rodgers" <sinful622@gmail.com>)
Список pgsql-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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Raymond C. Rodgers"
Дата:
Сообщение: "unsupported format code: 36" in prepared statement with libpq-fe 9.2.5
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: DBD::Pg 3.0.0, Perl driver for PostgreSQL, released