Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: sdavidr <david(dot)ricoma(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Date: 2011-03-28 09:43:10
Message-ID: AANLkTindSSqZiZwtPYKFfmBn+VWqCOrq8F+YC6JLb-eF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 28 March 2011 21:02, sdavidr <david(dot)ricoma(at)gmail(dot)com> wrote:

> The question is: is it very difficult to change that to a more correct
> returning [identifier] ?

BTW, the driver *does* do exactly this if you call the query execution
methods that take an array of column names to return as generated
keys.
You only get RETURNING * added to the query if you asked for
RETURN_GENERATED_KEYS without specifying any column names.
So it sounds like Hibernate is doing something wrong, but it's very
hard to tell without seeing a concrete testcase.

Oliver

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2011-03-28 09:54:15 Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Previous Message Dave Cramer 2011-03-28 09:36:26 Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4