[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1423) ParameterParser bug - ordinal parameter mismatch

Juan Antonio Agudo (JIRA) noreply at atlassian.com
Tue Apr 3 20:45:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26629 ] 

Juan Antonio Agudo commented on HHH-1423:
-----------------------------------------

I am using 3.2.2.ga and it's still not fixed. A simple query like this one is sufficient to break the parser: "select p from Poll p order by p.createDate asc limit ?"

Exception reads: 

org.hibernate.HibernateException: ordinal parameter mismatch
	at org.hibernate.engine.query.HQLQueryPlan.buildParameterMetadata(HQLQueryPlan.java:275)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:97)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
	at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
	at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
	at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
	at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)





> ParameterParser bug  - ordinal parameter mismatch
> -------------------------------------------------
>
>                 Key: HHH-1423
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: query-hql
>    Affects Versions: 3.1.2
>         Environment: Windows XP SP2, JDK 1.5.0_06-b05, Spring 1.2.6, antlr-2.7.6rc1
>            Reporter: Artur Wronski
>            Priority: Critical
>         Attachments: HHH1423Test.java, ParameterParser.2.patch, ParameterParser.3.patch, ParameterParser.patch, RecognizerBug.java
>
>
> There is still problem with ParameterParser. The same was in Hibernate 3.1.1
> Runnable TestCase in attachment.

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