These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HQL delete bug in 3.1.3 version
PostPosted: Thu Mar 23, 2006 11:38 am 
Newbie

Joined: Wed Dec 15, 2004 1:58 pm
Posts: 16
Location: Prague, Czech Republic
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!

Do you have same problems? If so I will report in JIRA.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.