[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3197) subquery is not valid SQL when select type is same as parent sql select type
Nicolai Marck Ødum (JIRA)
noreply at atlassian.com
Thu Dec 11 17:35:38 EST 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31927#action_31927 ]
Nicolai Marck Ødum commented on HHH-3197:
-----------------------------------------
I have just verified that this bug still exsist in this setup
Java 1.6.0_11
JBoss 4.2.3.GA patched with Hibernate Entitymanager 3.4.0.GA, Hibernate Annotations 3.4.0.GA and Hibernate Core 3.3.1.GA
> subquery is not valid SQL when select type is same as parent sql select type
> ----------------------------------------------------------------------------
>
> Key: HHH-3197
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3197
> Project: Hibernate Core
> Issue Type: Bug
> Affects Versions: 3.2.6
> Environment: Java 1.5.0_14
> JBoss 4.2.2.GA (Hibernate 3.2.1) - I have also tried with Hibernate 3.2.6.ga, hibernate-annotations-3.3.1.GA and hibernate-entitymanager-3.3.2.GA with same result.
> PostgreSQL 8.3.0
> WindowsXP
> Reporter: Nicolai Marck Ødum
>
> The following ejb3 QL:
> "Delete FROM Notification noti WHERE noti NOT IN (SELECT subNoti.notifications FROM SubscriberNotification subNoti)"
> Result in the following sql
> "delete from Notification where id not in (select . from SubscriberNotification subscriber1_, SubscriberNotification_Notification notificati2_, Notification notificati3_ where subscriber1_.id=notificati2_.SubscriberNotification_id and notificati2_.notifications_id=notificati3_.id)"
> notice the "select . from" in the subquery
> if I alter the sql to be
> "delete from Notification where id not in (select notificati3_.id from SubscriberNotification subscriber1_, SubscriberNotification_Notification notificati2_, Notification notificati3_ where subscriber1_.id=notificati2_.SubscriberNotification_id and notificati2_.notifications_id=notificati3_.id)"
> I have not been able to create a workaround.
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list