Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Dale Twineham / Dale Twineham (Dale Twineham)
Created: 03/27/2015
Components: ORM Support
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Other
Vote Count: 0
Duplicate ID:	CF-3041790
Problem Description:Specifying "true" as the Unique parameter does not complain if the query results in multiple records returned
Steps to Reproduce:        
local.cities = ORMExecuteQuery("
              SELECT DISTINCT city
              FROM Offices
              WHERE status != 'I'
              AND officeType = 'Sales Office'
              ORDER BY city ASC",
              true,
              {cacheable=true, cachename='SalesOfficesCache'}
        );
Actual Result: returns a list of records
Expected Result: should fail with a hibernate exception if more than one record matches the query
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID:	3960610
External Customer Info:
External Company:  
External Customer Name: Dale
External Customer Email:  
External Test Config: ColdFusion 11,0,04,293328, SQL Server 2005, Ubuntu 12.04 64-bit
  Attachments:
Comments: