[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3285) Cast function invoking another function with two arguments.

Pedro Gonçalves (JIRA) noreply at atlassian.com
Wed May 14 14:17:33 EDT 2008


Cast function invoking another function with two arguments.
-----------------------------------------------------------

                 Key: HHH-3285
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3285
             Project: Hibernate3
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.6
         Environment: 3.2.6, Oracle 9i
            Reporter: Pedro Gonçalves


Hi. I think that i found a bug. 

In my hql, in select clause if i put something like this:

"select cast(myfunction(table.field1,anotherfunction(table.field2)) as string) ) as myresult, table.field1, table.field2  from MyClass "

i have this error:

Caused by: org.hibernate.QueryException: cast() requires two arguments ...

I think that the second comma after field1 is making hibernate crazy, because when i try another function like this:

"select cast(myfunction(table.field) as string) ) as myresult, table.field1, table.field2  from MyClass "

everything works fine.

Thanks!

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