Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 15FEA1337BB7 for ; Mon, 28 Mar 2011 05:03:00 -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 98833-01 for ; Mon, 28 Mar 2011 08:02:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id ADEB01337B4E for ; Mon, 28 Mar 2011 05:02:45 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q47PQ-0005Bi-Ie for pgsql-jdbc@postgresql.org; Mon, 28 Mar 2011 01:02:44 -0700 Date: Mon, 28 Mar 2011 01:02:44 -0700 (PDT) From: sdavidr To: pgsql-jdbc@postgresql.org Message-ID: <1301299364557-4267176.post@n5.nabble.com> In-Reply-To: References: <1300923357612-4259788.post@n5.nabble.com> Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201103/81 X-Sequence-Number: 21636 Yes, the problem is not only with version 9. The problem started with the "returning *", that from my perspective is a very error prone solution and of course it shows a poorly designed driver. The question is: is it very difficult to change that to a more correct returning [identifier] ? Because of this error, third parties like hibernate expects that the first returned element is the identifier, but that doesn't always happens. Sometimes it returns a discriminator, sometimes it could be something else that could be a long, and that could be disastrous if third party uses this number as a identifier in an application. Thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Problems-with-Hibernate-Discriminators-and-9-0-801-jdbc4-tp4259788p4267176.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.