Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Brian Love / Brian Love (Brian Love)
Created: 03/01/2016
Components: Language
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Mac 10.11
Vote Count: 3
Problem Description: The for-in construct for looping over a query that is cached doesn't work.
Steps to Reproduce: Using <cfquery> or QueryExecute() with the cacheregion and cacheid options returns a cached query object. Looping over this query result using <cfloop> works as expected. However, looping over the query using the script style for-in syntax does not work.
Please see gist: https://gist.github.com/anonymous/d51f927cb771840df50c
Or via trycf.com: http://trycf.com/gist/d51f927cb771840df50c/acf2016?theme=monokai
Actual Result: The for-in should loop over the query rows. It does not.
Expected Result: The for-in should loop over the query rows.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4123732
External Customer Info:
External Company:
External Customer Name: Brian Love
External Customer Email:
External Test Config: My Hardware and Environment details: Mac OS X 10.11 with version 2016.0.0.298074.
Attachments:
Comments: