]
Steve Ebersole updated HHH-2543:
--------------------------------
Priority: Minor (was: Critical)
need a test case
HQL
---
Key: HHH-2543
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2543
Project: Hibernate3
Issue Type: Bug
Components: query-hql
Affects Versions: 3.2.0.ga
Environment: windows, Netbeans
Reporter: Feng Gao
Priority: Minor
I use the following HQL and I got the sql below:
from Order o
where
o.caiman_status in (' ' NEW' , 'CAPUTRE_REQUEST' ,
'REVERSAL_REQUEST' , 'REFUND_REQUEST')
or (o.caiman_status='AUTH_RETRY' and o.nextCallDate is not null) order by o.id
asc
------------------------
Generated SQL:
------------------------
from
CM_ORDERS order0_
where
order0_.caimain_status in (
' NEW' , 'CAPUTRE_REQUEST' , 'REVERSAL_REQUEST' ,
'REFUND_REQUEST'
)
or order0_.caimain_status='AUTH_RETRY' and ( order0_.next_call_date is
not null ) //the bracket should start after 'or'
order by order0_.order_id asc
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: