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

Joe Sach (JIRA) noreply at atlassian.com
Wed Nov 24 10:24:13 EST 2010


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

Joe Sach commented on HHH-1423:
-------------------------------

Still seeing this in 3.3.2 - My named query was:

select cl from Call cl where cl.accountManager.id=? and TRUNC(cl.callStart) =TRUNC(?)  and cl.company.id=? 

If I change it to 

select cl from Call cl where TRUNC(cl.callStart) =TRUNC(?) and cl.accountManager.id=? and cl.company.id=?

as suggested by someone above, then it works.

> ParameterParser bug  - ordinal parameter mismatch
> -------------------------------------------------
>
>                 Key: HHH-1423
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423
>             Project: Hibernate Core
>          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