pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Xavier Le Vourch <xavier@brittanysoftware.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Large objects truncated when retrieved
Date: Sat, 04 Oct 2003 16:14:07 -0700
Message-ID: <3F7F543F.8050807@brittanysoftware.com> (raw)
In-Reply-To: <016901c38ac9$ab7c8570$3d283ddb@PbgX>
References: <016901c38ac9$ab7c8570$3d283ddb@PbgX>

Hiroshi Inoue wrote:

>>-----Original Message-----
>>From: Xavier Le Vourch
>>Sent: Saturday, October 04, 2003 3:48 AM
>>
>>I'm storing pictures in a table using the lo type definition from the 
>>FAQ. The server version is 7.2.3 and the odbc driver is 7.3.100.
>>
>>The images are stored correctly and can be retrieved on the 
>>server fine 
>>using psql but the odbc driver truncates the objects at 32k+1 on the 
>>retrieve (they were stored correctly though).
> 
> 
> Which data type are you using to store the images ?

I'm using the lo type defined in the FAQ at:

http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52


> And what kind of tools are you using ?
> In most cases tools have their own limitations.
> 

I'm using Borland C++ 6 but the problem seems to be coming from the 
driver as when I enabled logging, I get messages like:

conn=67191248, query='COMMIT'
The 2th item was truncated
The buffer size = 32769 and the value is '1040924'

even when I modified Max LongVarChar in the data source.

If the image size is less than 32769, it works but anything larger than 
that will be truncated on the retrieval only.


Best regards,
Xavier

-- 
Xavier Le Vourch
Brittany Software, Inc.
<xavier@brittanysoftware.com>

PGP Key: http://brittanysoftware.com/gpg_key.asc







view thread (4+ messages)  latest in thread

Message-ID: <3F7F543F.8050807@brittanysoftware.com>
Permalink:  ../3F7F543F.8050807@brittanysoftware.com/
Also on:    postgresql.org/message-id/3F7F543F.8050807@brittanysoftware.com

 · 

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: xavier@brittanysoftware.com
  Subject: Re: Large objects truncated when retrieved
  In-Reply-To: <3F7F543F.8050807@brittanysoftware.com>
  References: <016901c38ac9$ab7c8570$3d283ddb@PbgX> <3F7F543F.8050807@brittanysoftware.com>

* 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