pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CN LIOU <cnliou@graffiti.net>
To: pgsql-odbc@postgresql.org
Subject: Re: IODBC32.DLL: Access Violation
Date: Thu, 26 Sep 2002 16:54:07 +0800
Message-ID: <20020926085407.31293.qmail@graffiti.net> (raw)

Many thanks!  Hiroshi,

> > > > psqlODBC 7.02.0002 + PostgreSql 7.2.1 + Borland BDE +Windows95.
> > 
> > [snip]
> > 
> > > >
> > > > Thus, I am trying to use TEXT column instead - and fail, too:
> > > >
> > > > create table MyTable (c1 integer,c2 text);
> > > > --Then fill up value2 with string value using Delphi.
> > > > INSERT INTO MyTable VALUES(:value1,:value2)
> > > >
> > > > The INSERT results in Access Violation from IDODBC32.DLL.
> > > > Please note that value2 is about 55 kbytes in size and contains
> > > > some low values, '\0' in terms of C. Can this be the problem
> > > > confusing pgsqlODBC?
> > >
> > > Yes.
> > 
> > I have then also removed low values from the string but AV remains. I have set the pgsqlODBC switches according to the instructions in:
> > 
> > http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=61
> > 
> > Can '\r' or '\n' be a problem?
> 
> Maybe. Please turn off *LF <-> CR/LF conversion* DSN
> option setting.
> 
> > What are the allowed/disallowed characters in LongVarChar
> > (to be sent to postgreSQL TEXT data type column)?
> 
> AFAIK there's no inhibited character other than '\0'.
> However there may be another problem. If you are in a
> multibyte environment the client encoding would be
> converted to the server's one. 

Now I found that the problem has nothing to do with the data itself in the string to be inserted. It is the _size_ of the string which causes IDODBC32.DLL Access Violation. The insert is OK for several bytes, but data with 55 kbytes causes ODBC AV. Any idea?

Regards, CNLIOU
-- 
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze



view thread (6+ messages)

Message-ID: <20020926085407.31293.qmail@graffiti.net>
Permalink:  ../20020926085407.31293.qmail@graffiti.net/
Also on:    postgresql.org/message-id/20020926085407.31293.qmail@graffiti.net

 · 

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: cnliou@graffiti.net
  Subject: Re: IODBC32.DLL: Access Violation
  In-Reply-To: <20020926085407.31293.qmail@graffiti.net>
  References: <20020926085407.31293.qmail@graffiti.net>

* 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