pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Graham Vickrage <graham@gpmd.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Text field truncation problem
Date: Fri, 22 Nov 2002 09:13:34 +0900
Message-ID: <3DDD76AE.410DC53E@tpf.co.jp> (raw)
References: <00de01c29180$749309f0$6d00000a@GVICKRAGE>

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/



view thread (7+ messages)  latest in thread

Message-ID: <3DDD76AE.410DC53E@tpf.co.jp>
Permalink:  ../3DDD76AE.410DC53E@tpf.co.jp/
Also on:    postgresql.org/message-id/3DDD76AE.410DC53E@tpf.co.jp

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Inoue@tpf.co.jp, graham@gpmd.co.uk
  Subject: Re: Text field truncation problem
  In-Reply-To: <3DDD76AE.410DC53E@tpf.co.jp>
  References: <00de01c29180$749309f0$6d00000a@GVICKRAGE> <3DDD76AE.410DC53E@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox