[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3285) Cast function invoking another function with two arguments.
Diego Plentz (JIRA)
noreply at atlassian.com
Wed Aug 13 09:54:05 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Diego Plentz resolved HHH-3285.
-------------------------------
Assignee: Diego Plentz
Resolution: Rejected
You have a exceeding parenthesis.
select cast(myfunction(table.field1,anotherfunction(table.field2)) as string) *)* as myresult, table.field1, table.field2 from MyClass
> 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
> Assignee: Diego Plentz
>
> 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