pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: standard LOB support
Date: Fri, 22 Jun 2007 09:44:39 +0200
Message-ID: <f5ful6$am$1@sea.gmane.org> (raw)
In-Reply-To: <01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local>
References: <f5fsm4$q67$1@sea.gmane.org>
	<01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local>

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




view thread (13+ messages)  latest in thread

Message-ID: <f5ful6$am$1@sea.gmane.org>
Permalink:  ../f5ful6$am$1@sea.gmane.org/
Also on:    postgresql.org/message-id/f5ful6$am$1@sea.gmane.org

 · 

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-jdbc@postgresql.org
  Cc: spam_eater@gmx.net, pgsql-general@postgresql.org
  Subject: Re: standard LOB support
  In-Reply-To: <f5ful6$am$1@sea.gmane.org>
  References: <f5fsm4$q67$1@sea.gmane.org> <01b301c7b49e$f06fa6f0$4a0aa8c0@ipljp.local> <f5ful6$am$1@sea.gmane.org>

* 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