Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0E59476414 for ; Wed, 25 Sep 2002 03:10:07 -0400 (EDT) Received: from mg.hk5.outblaze.com (202-77-181-23.outblaze.com [202.77.181.23]) by postgresql.org (Postfix) with ESMTP id C1A5A4763C9 for ; Wed, 25 Sep 2002 03:10:05 -0400 (EDT) Received: from ws3.hk5.outblaze.com (202-77-181-90.outblaze.com [202.77.181.90]) by mg.hk5.outblaze.com (8.11.2/8.11.2) with SMTP id g8P79s827839 for ; Wed, 25 Sep 2002 07:09:54 GMT Received: (qmail 17528 invoked by uid 1001); 25 Sep 2002 07:09:48 -0000 Message-ID: <20020925070948.17527.qmail@graffiti.net> Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [202.181.219.129] by ws3.hk5.outblaze.com with http for cnliou@graffiti.net; Wed, 25 Sep 2002 15:09:47 +0800 From: "CN LIOU" To: pgsql-odbc@postgresql.org Date: Wed, 25 Sep 2002 15:09:47 +0800 Subject: Re: IODBC32.DLL: Access Violation X-Originating-Ip: 202.181.219.129 X-Originating-Server: ws3.hk5.outblaze.com X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/91 X-Sequence-Number: 2062 > > 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 answer is "No" if you refer LongVarBinary to Delphi's field type. I want to associate :value2 with Delphi's TBlobField. If you refer LongVarBinary to the switches in pgsqlODBC, I have just tried switching on/off "Unknowns As LongVarChar" and "Maximum/Longest" in "Unknown sizes" box. They all give me the same result that follows. > > 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. Best Regards, CN -- _______________________________________________ Get your free email from http://www.graffiti.net Powered by Outblaze