Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 15654 invoked from network); 3 Mar 2005 22:08:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 22:08:38 -0000 Received: (qmail 3104 invoked by uid 500); 3 Mar 2005 22:08:37 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 2914 invoked by uid 500); 3 Mar 2005 22:08:37 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 2901 invoked by uid 99); 3 Mar 2005 22:08:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from manta.curalia.se (HELO manta.curalia.se) (213.115.149.212) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 14:08:35 -0800 Received: from [192.168.1.5] (unknown [80.64.176.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by manta.curalia.se (Postfix) with ESMTP id 01095ABC003 for ; Thu, 3 Mar 2005 23:08:30 +0100 (CET) Message-ID: <42278AD9.2090701@apache.org> Date: Thu, 03 Mar 2005 23:08:25 +0100 From: =?ISO-8859-1?Q?Martin_Kal=E9n?= Organization: ASF User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: Clob/Blob handling References: <42274F24.10600@apache.org> In-Reply-To: <42274F24.10600@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Armin Waibel wrote: > I think that in JdbcTypesHelper$T_Clob/T_Blob inner classes the handling > of Blob/Clob is not correct. The JDBC 3.0 mapping for BLOB is > java.sql.Blob but in methods #readValueFromStatement(...) and > #readValueFromResultSet(...) we always return a byte[] object. Unfortunately I think changing this might reintroduce the Oracle 2k/4k limitations on BLOB/CLOB (using the thin driver). Oracle have their own Blob and Clob class and recommend to cast to Oracle-specific classes when working with these datatypes (just as they are recommending casting connections to OracleConnection for enabling some optimizations on the Connection-level). No good for a generic platform model, like in OJB. But this would definately be something to investigate for OJB1.1, if you have some ideas for patches I can test them on Oracle later (I still want to get finished with 1.0.2-work before going on to update from CVS trunk and 1.1-project). Regards, Martin --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org