Re: Text field truncation problem

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Text field truncation problem
Дата
Msg-id 3DDD76AE.410DC53E@tpf.co.jp
обсуждение исходный текст
Ответ на Text field truncation problem  ("Graham Vickrage" <graham@gpmd.co.uk>)
Ответы Re: Text field truncation problem  ("Graham Vickrage" <graham@gpmd.co.uk>)
Список pgsql-odbc
Graham Vickrage wrote:
>
> I am trying to sort out a problem with ODBC truncating text fields.
>
> I am running Postgres 7.2.3, and using the latest ODBC driver from the
> official website.
>
> When I connect through the windows client I get the message:
>
> Test2.pl: DBD::ODBC::st fetchrow_hashref failed: Fetched item was
> truncated. (SQL-01004)(DBD: st_fetch/SQLFetch (long truncated) err=1)
>
> I have attached the log from the ODBC if that is any use.

Judging from the log, your program is binding a (80+1) byte
buffer for the "description" text field. I don't understand
where the 80(or 81) come from. OTOH your program seems to be
binding the "name" field with a right(50+1 byte) sized buffer.

regards,
Hiroshi Inoue
    http://w2422.nsk.ne.jp/~inoue/

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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: empty text on XP in MS Access
Следующее
От: "Han"
Дата:
Сообщение: "#if (ODBCVER >= 0x0399)" in info.c?