From: Kris Jurka <books@ejurka.com>
To: Michael Barker <mike@middlesoft.co.uk>
Cc: acoliver@jboss.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [Patch] JDBC3 Blob support
Date: Thu, 24 Mar 2005 14:58:11 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0503241438280.30237@leary.csoft.net> (raw)
In-Reply-To: <52841.192.85.50.1.1111594305.squirrel@corona.dnsalias.net>
References: <1108864694.5883.5.camel@corona>
<Pine.BSO.4.56.0502191512160.18612@leary.csoft.net>
<1109997557.3838.1.camel@corona>
<Pine.BSO.4.56.0503201658370.32696@leary.csoft.net>
<52841.192.85.50.1.1111594305.squirrel@corona.dnsalias.net>
On Wed, 23 Mar 2005, Michael Barker wrote:
> I will have a look at the patch over the weekend. When I wrote the CLOB
> stuff I set it up to always use a single byte encoding, except when using
> get/setCharacterStream. If a user required mulltibyte encodings then they
> should use the Reader/Writer combination exclusively.
AbstractJdbc2Clob.getSubString creates a String from bytes with no
encoding specified.
AbstractJdbc3Clob.setString(long, String, int, int) gets a String's bytes
with no encoding specified.
Even when the user wants a multibyte encoding they are stuck using the
JVM's default encoding because the Reader/Writer's are not created with an
encoding specified.
Yeah, it's a complicated issue. I know you were after just the BLOB part
and I pushed you into the CLOB part. No one else has any feedback, and no
matter what we do it won't be all that good, so maybe the smart thing to
do is just to abandon the CLOB part and just put the BLOB in by itself.
Not to discourage you if you really are interested in the CLOB part of it,
just letting you know that it's not a prerequisite for the BLOB part to
get in.
Kris Jurka
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: books@ejurka.com, mike@middlesoft.co.uk, acoliver@jboss.org
Subject: Re: [Patch] JDBC3 Blob support
In-Reply-To: <Pine.BSO.4.56.0503241438280.30237@leary.csoft.net>
References: <1108864694.5883.5.camel@corona> <Pine.BSO.4.56.0502191512160.18612@leary.csoft.net> <1109997557.3838.1.camel@corona> <Pine.BSO.4.56.0503201658370.32696@leary.csoft.net> <52841.192.85.50.1.1111594305.squirrel@corona.dnsalias.net> <Pine.BSO.4.56.0503241438280.30237@leary.csoft.net>
* 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