pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: CN LIOU <cnliou@graffiti.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: IODBC32.DLL: Access Violation
Date: Wed, 25 Sep 2002 09:31:09 +0900
Message-ID: <3D9103CD.FC657C1B@tpf.co.jp> (raw)
References: <20020924020651.23860.qmail@graffiti.net>

CN LIOU wrote:
> 
> Hi!
> 
> psqlODBC 7.02.0002 + PostgreSql 7.2.1 + Borland BDE + Windows95.
> 
> ODBC behaves very strangely for bytea:
> 
> create table MyTable (c1 integer,c2 bytea);
> --Then fill up value2 with blob value using Borland Delphi.
> INSERT INTO MyTable VALUES(:value1,:value2)

Are you binding the :value2 as LongVarBinary ?

> The inserted row is really odd - c2 contains the OID pointing to
> the blob data.  Though I don't know where the blob data actually
> reside, lo_export command does export the blob data to Linux file
> system. The even more serious problem I cannot circumvent is that
> I don't know how to retrieve that blob data from PostgreSQl through
> psqlODBC.  This is because psqlODBC seems to not be able to return
> blob field type for BDE.
> 
> 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 IODBC32.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.
 
regards,
Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



view thread (6+ messages)  latest in thread

Message-ID: <3D9103CD.FC657C1B@tpf.co.jp>
Permalink:  ../3D9103CD.FC657C1B@tpf.co.jp/
Also on:    postgresql.org/message-id/3D9103CD.FC657C1B@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, cnliou@graffiti.net
  Subject: Re: IODBC32.DLL: Access Violation
  In-Reply-To: <3D9103CD.FC657C1B@tpf.co.jp>
  References: <20020924020651.23860.qmail@graffiti.net> <3D9103CD.FC657C1B@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