[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-4567) EntiytManager's QueryImpl mishandles ordinal position of HQL-style positional parameters

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Nov 11 17:22:14 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-4567.
-------------------------------

    Resolution: Fixed

> EntiytManager's QueryImpl mishandles ordinal position of HQL-style positional parameters
> ----------------------------------------------------------------------------------------
>
>                 Key: HHH-4567
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4567
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: entity-manager
>    Affects Versions: 3.5.0.Beta-1, 3.5.0-Beta-2
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>            Priority: Minor
>             Fix For: 3.5
>
>
> Even though JPAQL does not allow such a syntax, HQL allow JDBC-style positional parameters to be used (? as opposed to ?1 which JPA requires).  Currently there is a bug in org.hibernate.ejb.QueryImpl which mishandles the ordinal position for these parameters causing them to be "off by one".  
> The symptom is an error like : java.lang.IllegalArgumentException: Unable to locate parameter with position [1]

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