X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 42ADCD1B4FC for ; Sat, 4 Oct 2003 23:15:18 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13190-06 for ; Sat, 4 Oct 2003 20:14:33 -0300 (ADT) Received: from brehat.brittanysoftware.com (unknown [207.44.182.78]) by svr1.postgresql.org (Postfix) with ESMTP id 76BE9D1B4F0 for ; Sat, 4 Oct 2003 20:14:30 -0300 (ADT) Received: from brittanysoftware.com (250-137.adsl1.netlojix.net [207.71.250.137]) (authenticated (0 bits)) by brehat.brittanysoftware.com (8.11.6/8.11.6) with ESMTP id h94NEW326722 for ; Sat, 4 Oct 2003 16:14:32 -0700 Message-ID: <3F7F543F.8050807@brittanysoftware.com> Date: Sat, 04 Oct 2003 16:14:07 -0700 From: Xavier Le Vourch Organization: Brittany Software, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Large objects truncated when retrieved References: <016901c38ac9$ab7c8570$3d283ddb@PbgX> In-Reply-To: <016901c38ac9$ab7c8570$3d283ddb@PbgX> X-Enigmail-Version: 0.81.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/31 X-Sequence-Number: 3344 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. PGP Key: http://brittanysoftware.com/gpg_key.asc