[hibernate-issues] [Hibernate-JIRA] Created: (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:17:19 EDT 2006


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
 Assigned to: Emmanuel Bernard 
    Priority: Minor


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