Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 908D89FB60C for ; Fri, 22 Jun 2007 04:28:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 42113-07 for ; Fri, 22 Jun 2007 04:28:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from iplocks.co.jp (iplocks.co.jp [211.19.47.137]) by postgresql.org (Postfix) with SMTP id C2AA79FB5BB for ; Fri, 22 Jun 2007 04:28:37 -0300 (ADT) Received: (qmail 17601 invoked from network); 22 Jun 2007 16:28:09 +0900 Received: from unknown (HELO EBIHARA) (220.221.255.7) by iplocks.co.jp with SMTP; 22 Jun 2007 16:28:09 +0900 From: "EBIHARA, Yuichiro" To: Subject: Re: standard LOB support Date: Fri, 22 Jun 2007 16:28:25 +0900 Message-ID: <01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Thread-Index: Ace0nOX/qVomtyKlTZCluLu7OPqORAAATswA Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.113 tagged_above=0 required=5 tests=AWL=0.112, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/1302 X-Sequence-Number: 116125 Thomas, > > According to JDBC 3.0 specifiction, those 4 methods may not be > > compatible to BLOB/CLOB. Some databases may support them to > access LOB > > data but not all databases. > > > Hmm. At least for updating LOBs, "my method" should be > "legal". This is a quote from jdbc-3_0-fr-spec.pdf > > "The setBinaryStream and setObject methods may also be used > to set a Blob object as a parameter in a PreparedStatement > object. The setAsciiStream, setCharacterStream, and setObject > methods are alternate means of setting a Clob object as a parameter." Sorry, my comment was partially incorrect. See B-182(TABLE B-6) of the spec. getBinaryStream()/getCharacterStream are not compatible to LOB. Also, there were some limitations with Oracle JDBC "Thin" driver 9.2 and those methods didn't work with LOB. Thanks, ebi