[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2015) where= does not set parenthesis leading to unexpected query when multiclause are used

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Aug 18 17:52:18 EDT 2006


     [ 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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list