]
Diego Pires Plentz resolved HHH-1605.
-------------------------------------
Assignee: Diego Pires Plentz
Resolution: Duplicate
HQL delete in 3.1.3 bug
-----------------------
Key: HHH-1605
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1605
Project: Hibernate3
Issue Type: Bug
Components: query-hql
Affects Versions: 3.1.3
Reporter: Lukas Barton
Assignee: Diego Pires Plentz
I finded bug in Hibernate 3.1.3 version, that was not in 3.1.2.
Try HQL DML like this:
delete from IdfKlient vstp where exists(from Dotaz as dotaz where dotaz.davka=:davka and
vstp.dotaz=dotaz)
Hibernate 3.1.2 transaltes as:
Hibernate: delete from idfklient where exists (select dotaz1_.id from dotaz dotaz1_ where
iddavky=? and dotaz_id=id)
But in Hibernate 3.1.3:
Hibernate: delete from idfklient where exists (select dotaz1_.id from dotaz dotaz1_ where
dotaz1_.iddavky=? and idfklient0_.dotaz_id=id)
And fails!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: