[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2915) In native sql, bind parameter enclosed by function are not accepted

Jigar Sutaria (JIRA) noreply at atlassian.com
Sun Oct 28 15:15:39 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jigar Sutaria updated HHH-2915:
-------------------------------

    Attachment: Project2.rar

Project Folder

> In native sql, bind parameter enclosed by function are not accepted
> -------------------------------------------------------------------
>
>                 Key: HHH-2915
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2915
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: query-sql
>    Affects Versions: 3.2.4
>         Environment: Oracle 10g
>            Reporter: Jigar Sutaria
>         Attachments: Project2.rar
>
>
> Following query is not working
> 		SELECT cust.id as myId FROM customer cust 
> 		WHERE UPPER(cust.first_name) = UPPER( :firstName )
> 		AND UPPER(cust.last_name) = UPPER(:lastName)
> But if I change it to following then its working
> 		SELECT cust.id as myId FROM customer cust 
> 		WHERE UPPER(cust.first_name) = :firstName 
> 		AND UPPER(cust.last_name) = :lastName

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