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

Diego Pires Plentz (JIRA) noreply at atlassian.com
Sun Oct 28 14:51:38 EDT 2007


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

Diego Pires Plentz commented on HHH-2915:
-----------------------------------------

Please, attach a running testcase(java+mapping). If you have, patch and/or stacktrace is also usefull.

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