[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5033) Subquery example error

Paul Benedict (JIRA) noreply at atlassian.com
Wed Mar 24 02:19:35 EDT 2010


Subquery example error
----------------------

                 Key: HHH-5033
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5033
             Project: Hibernate Core
          Issue Type: Bug
          Components: documentation
    Affects Versions: 3.5.0-CR-2, 3.3.2, 3.2.7
            Reporter: Paul Benedict
            Priority: Trivial


14.13 gives this example:
select cat.id, (select max(kit.weight) from cat.kitten kit) from Cat as cat

I wrote something very similar but the parser rejected it. The alias needs to be outside the parentheses:
select cat.id, (select max(kit.weight) from cat.kitten) as kit from Cat as cat

-- 
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