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

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


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-2, 3.5.0.Beta-1
            Reporter: Steve Ebersole
            Assignee: Steve Ebersole
             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