From: Kris Jurka <books@ejurka.com>
To: Jochen Terstiege <jochen.terstiege@quinscape.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver method setClob always uses getAsciiStream()
Date: Wed, 8 Sep 2010 05:10:41 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1009080510020.3032@leary.csoft.net> (raw)
In-Reply-To: <4C865AE5.5000906@quinscape.de>
References: <4C865AE5.5000906@quinscape.de>
On Tue, 7 Sep 2010, Jochen Terstiege wrote:
> Using driver: postgresql-8.4-701.jdbc3.jar
>
> The method setClob() in the AbstractJdbc2Statement calls the method
> getAsciiStream() on the provided Clob. This leads to problems if the given
> Clob contains an UTF-8 encoded string.
>
> Shouldn't the driver call getCharacterStream() instead? Can this problem be
> solved in a different way?
>
Here are my comments from the identical earlier report on the -bugs list.
http://archives.postgresql.org/pgsql-bugs/2010-09/msg00034.php
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, jochen.terstiege@quinscape.de
Subject: Re: JDBC driver method setClob always uses getAsciiStream()
In-Reply-To: <alpine.BSO.2.00.1009080510020.3032@leary.csoft.net>
References: <4C865AE5.5000906@quinscape.de> <alpine.BSO.2.00.1009080510020.3032@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