Received: from info.perio.unlp.edu.ar (IDENT:root@perio.unlp.edu.ar [163.10.16.2]) by hub.org (8.9.2/8.9.1) with ESMTP id KAA02547 for ; Wed, 31 Mar 1999 10:49:13 -0500 (EST) (envelope-from ser@info.perio.unlp.edu.ar) Received: from speedy.perio.unlp.edu.ar ([163.10.16.29]) by info.perio.unlp.edu.ar (8.8.7/8.8.7) with SMTP id NAA22612 for ; Wed, 31 Mar 1999 13:21:13 GMT From: Sergio Message-Id: In-Reply-To: Date: Tue, 30 Mar 1999 19:22:26 -0300 X-Priority: 3 X-Mailer: Correo Fácil To: pgsql-interfaces@hub.org Subject: Re: [INTERFACES] Odbc driver MIME-Version: 1.0 Content-Type: Text/Plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sergio el día Tue, 30 Mar 1999 12:40:10 -0300, escribió: > >Byron, > >Postgres 6.3.2, Odbc driver 6.40.0004 > > >I get this > >'Access violation at address xxxxxxx in module 'PSQLODBC.DLL'. >Read of address yyyyyyyy' > >calling SQLGetData( hstmt, FieldNo, SQL_BINARY, SQLPOINTER( @i), 0, @iv); > >note the 5th parameter -> 0 > >over a TEXT field with sizes of 4000 or more bytes. > >if I try it with small fields (3000 or so bytes) there is no problem. > >ok, I tracked it down and it seems to work until iv=4099, >when it must return 4100, boom ! I _think_ I found the problem: in convert.c in the function copy_and_convert_field, you declare char tempBuf[TEXT_FIELD_SIZE+5]; wich is fixed at _compile_ time, no ?, so the TEXT_FIELD_SIZE wich is an option in the Odbc driver cfg, is ignored. I'm rigth ? (because changing Max LongVarChar in the cfg doesn't seems to affect nothing) Sergio