Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D5406632957 for ; Wed, 8 Sep 2010 06:10:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 83604-03 for ; Wed, 8 Sep 2010 09:10:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 3F1D463274B for ; Wed, 8 Sep 2010 06:10:44 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 497AB28461; Wed, 8 Sep 2010 05:10:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=nMtA9zjOdZwqTA+lwJzjrNkBOGw=; b=mjrvkN GpAQoWBtarOgqkcIU0LgmMKjfzM9FBBx4+IdwFKfMbwrziFzLgXu0c1CZZmO2NH+ wJ/IslpqhqUdPmIBbpiRI2MEBC11/oIgwbmY+sSDUBwv8x3+DTHgzlSe9DE9ikPw 2EyuFzaFLYoWKNFb9FdEmJqxm/1zNTZ1rhqmI= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 2ABC32845E; Wed, 8 Sep 2010 05:10:42 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 7C058A3B3; Wed, 8 Sep 2010 05:10:41 -0400 (EDT) Date: Wed, 8 Sep 2010 05:10:41 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Jochen Terstiege cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC driver method setClob always uses getAsciiStream() In-Reply-To: <4C865AE5.5000906@quinscape.de> Message-ID: References: <4C865AE5.5000906@quinscape.de> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/9 X-Sequence-Number: 20879 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