[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-403?page=co...
]
Emmanuel Bernard commented on EJB-403:
--------------------------------------
The patch is not solving the root problem.
identification variables in update statements are legal as per the JPA spec.
The proper fix is to generate a SQL that "removes" the identification variable
for PostgreSQL (probably triggered by a Dialect flag).
Let's open a Hibernate Core JIRA for it and see what Steve has to say.
In the mean time, let's treat that as a limitation of PostgreSQL and a known failing
test.
QueryTest - Native Query for Update using alias causes failure
--------------------------------------------------------------
Key: EJB-403
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-403
Project: Hibernate Entity Manager
Issue Type: Patch
Components: EntityManager
Environment: PostgreSQL 8.2.3 and Entity Manager
Reporter: Juraci Paixao Krohling
Assignee: Juraci Paixao Krohling
Attachments: QueryTest.diff
Even though it says in documentation that it supports table aliases in "update"
clauses[1], the below test fails when using it. Removing the table alias is enough to make
it successful.
org.hibernate.ejb.test.QueryTest#testUpdateQuery
[1]
http://www.postgresql.org/docs/8.2/interactive/sql-update.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira