pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergio <ser@perio.unlp.edu.ar>
To: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] Odbc driver
Date: Tue, 30 Mar 1999 19:22:26 -0300
Message-ID: <SAK.1999.03.30.inqphpkb@speedy.perio.unlp.edu.ar> (raw)
In-Reply-To: <SAK.1999.03.30.rqjkheks@speedy.perio.unlp.edu.ar>

Sergio <ser@perio.unlp.edu.ar> 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




view thread (38+ messages)  latest in thread

Message-ID: <SAK.1999.03.30.inqphpkb@speedy.perio.unlp.edu.ar>
Permalink:  ../SAK.1999.03.30.inqphpkb@speedy.perio.unlp.edu.ar/
Also on:    postgresql.org/message-id/SAK.1999.03.30.inqphpkb@speedy.perio.unlp.edu.ar

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: ser@perio.unlp.edu.ar, pgsql-interfaces@hub.org
  Subject: Re: [INTERFACES] Odbc driver
  In-Reply-To: <SAK.1999.03.30.inqphpkb@speedy.perio.unlp.edu.ar>

* 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