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

john guthrie (JIRA) noreply at atlassian.com
Fri Oct 13 07:31:26 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423?page=comments#action_24794 ] 

john guthrie commented on HHH-1423:
-----------------------------------

there is a workaround, at least for some (read "my") cases.

just make sure that the 'call'-variable is the first in the query. for me this meant changing:
  from Ship s where s.name = ? and s.callsign = ?
to
  from Ship s where s.callsign = ? and s.name = ?


> ParameterParser bug  - ordinal parameter mismatch
> -------------------------------------------------
>
>          Key: HHH-1423
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423
>      Project: Hibernate3
>         Type: Bug

>   Components: query-hql
>     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