Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 017A19FB9A3 for ; Fri, 22 Jun 2007 05:05:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 11580-08 for ; Fri, 22 Jun 2007 05:05:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 43C969FC234 for ; Fri, 22 Jun 2007 05:05:22 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I1dvq-00075T-Tj for pgsql-general@postgresql.org; Fri, 22 Jun 2007 09:51:50 +0200 Received: from ppp-82-135-68-58.dynamic.mnet-online.de ([82.135.68.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2007 09:51:50 +0200 Received: from spam_eater by ppp-82-135-68-58.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2007 09:51:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Re: standard LOB support Date: Fri, 22 Jun 2007 09:44:39 +0200 Lines: 24 Message-ID: References: <01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp-82-135-68-58.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666 In-Reply-To: <01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/1304 X-Sequence-Number: 116127 EBIHARA, Yuichiro wrote on 22.06.2007 09:28: >> 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. Thanks for the pointer ;) According to that table, the PG driver is actually correct, as bytea is reported as Types.BINARY not Types.BLOB > Also, there were some limitations with Oracle JDBC "Thin" driver 9.2 and those methods didn't work > with LOB. Yes I found that as well. Only the 10.x driver work correctly Regards Thomas