Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSsY5-00023U-GD for pgsql-jdbc@arkaria.postgresql.org; Thu, 28 Jul 2016 21:08:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bSsY4-0002gE-Hw for pgsql-jdbc@arkaria.postgresql.org; Thu, 28 Jul 2016 21:08:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bSsXZ-000299-RU for pgsql-jdbc@postgresql.org; Thu, 28 Jul 2016 21:08:25 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bSsXT-0003e1-3d for pgsql-jdbc@postgresql.org; Thu, 28 Jul 2016 21:08:24 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bSsXP-0006hZ-VV for pgsql-jdbc@postgresql.org; Thu, 28 Jul 2016 23:08:16 +0200 Received: from ppp-93-104-119-86.dynamic.mnet-online.de ([93.104.119.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jul 2016 23:08:15 +0200 Received: from spam_eater by ppp-93-104-119-86.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jul 2016 23:08:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: ResultSet.getClob() causing problems when used with JPA's @Lob Date: Thu, 28 Jul 2016 23:07:56 +0200 Lines: 26 Message-ID: References: <201102070001.22259.andreak@officenet.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-119-86.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -3.9 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Vladimir Sitnikov schrieb am 28.07.2016 um 22:47: >> It would be nice if someone else could point me in the right direction, because I think >> that only a change to PreparedStatement would make that complete. > > Am I right your problem is "find a way to identify database type at PreparedStatement#setClob time"? > > I'm afraid, there's no solution for that. > > I'm not quite sure we can easily figure out what is the proper data type for the bind. That's really a pity, because the (very unusual) handling of "large objects" makes the Clob/Blob handling quite incompatiable with other JDBC implementations. > I do not like the idea "having additional round trip to the database just to resolve desired bind types". Me neither, that would be horrible. > I do not like the idea of having a switch that binds setClob to text or lob database types either. Well, in certain environments it would certainly make it easier to switch to Postgres. Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc