[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3834) Exception: cast() requires two arguments

Pertti Martikainen (JIRA) noreply at atlassian.com
Sat Oct 9 03:06:00 EDT 2010


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

Pertti Martikainen commented on HHH-3834:
-----------------------------------------

Hi,

I also get the exception with  cast(nbr * pow(10, - scale) as bigdecimal) 

> Exception: cast() requires two arguments
> ----------------------------------------
>
>                 Key: HHH-3834
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3834
>             Project: Hibernate Core
>          Issue Type: Bug
>         Environment: hibernate3, postgresql 8.3
>            Reporter: Paulo Angelo
>
> Got exaclty the same as in HHH-3285 .:
> cast() requires two arguments [select f from MenuItem f  where  (  (  UPPER( TO_ASCII(CAST(convert(f.Menu.Idme, 'UTF8', 'LATIN1') , TEXT),'LATIN1')) LIKE UPPER( TO_ASCII(CAST(convert('M10', 'UTF8', 'LATIN1') , TEXT),'LATIN1'))  )  )   order by f.Orde ASC ]
> But there is not a extra ")" (I think, :) )

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