[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2015?page=all ]
Emmanuel Bernard resolved HHH-2015:
-----------------------------------
Fix Version: 3.2.0.ga
Resolution: Fixed
Fixed for <class where>, <collection where> and <many-to-many where>
where= does not set parenthesis leading to unexpected query when
multiclause are used
-------------------------------------------------------------------------------------
Key: HHH-2015
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2015
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.cr3
Reporter: Emmanuel Bernard
Assignee: Emmanuel Bernard
Priority: Minor
Fix For: 3.2.0.ga
where="1=1 or 1 != 0" leads to
select ... from ... where ... and 1=1 or 1 != 0
should really be
select ... from ... where ... and (1=1 or 1 != 0)
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira