Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2008-05-14


Author LoginPost Reply
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

   

_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.