Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EC473475F00 for ; Fri, 22 Nov 2002 13:17:54 -0500 (EST) Received: from mta07-svc.ntlworld.com (mta07-svc.ntlworld.com [62.253.162.47]) by postgresql.org (Postfix) with ESMTP id 25227475E25 for ; Fri, 22 Nov 2002 13:17:54 -0500 (EST) Received: from [80.2.138.114] by mta07-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021122181753.BRDB2797.mta07-svc.ntlworld.com@[80.2.138.114]>; Fri, 22 Nov 2002 18:17:53 +0000 From: "Graham Vickrage" To: "'Hiroshi Inoue'" Cc: Subject: Re: Text field truncation problem Date: Fri, 22 Nov 2002 18:17:06 -0000 Message-ID: <001801c29253$607dc030$6d00000a@GVICKRAGE> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/123 X-Sequence-Number: 2300 Further to my e-mail below, I have tried the same thing on a production database running a different version of Linux / Postgres. I have tried this on two separate clients NT and XP and they all have the same problem! Should I start shopping around for a different ODBC driver? Can anyone shed some light on this, surely my set up is pretty standard??? Thanks again, Graham -----Original Message----- From: Graham Vickrage [mailto:graham@gpmd.co.uk] Sent: 22 November 2002 17:11 To: 'Hiroshi Inoue' Cc: 'pgsql-odbc@postgresql.org' Subject: RE: [ODBC] Text field truncation problem So should all the data types be 50+1 bytes, I don't know much about this sort of thing and really need to get this going. Are there any docs, resources anyone knows about where I can try and locate the issue. Is it likely to be a driver problem, postgreSQL, NT problem. Where do I start???? Please heeeeeeeeeeeeeeeelp. Thanks again Graham -----Original Message----- From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp] Sent: 22 November 2002 00:14 To: Graham Vickrage Cc: pgsql-odbc@postgresql.org Subject: Re: [ODBC] Text field truncation problem 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/