Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 04/10/2014
Components: Core Runtime
Versions: 11.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Critical / Some users will encounter
Locale/System: English / Win All
Vote Count: 1
A grouped query loop gets mangled if wrapped w/ another query loop
Steps to reproduce:
1) Run this:
<cfset tagsAndFunctions = queryNew("type,name", "", [["tag","cfif"],["tag","cfset"],["function","now"],["function","len"]]) />
<cfloop query="tagsAndFunctions" group="type">
<cfoutput>#type#: </cfoutput>
<cfloop><cfoutput>#name# </cfoutput></cfloop><br />
</cfloop>
Expected Output:
tag: cfif cfset
function: now len
Actual Output:
tag: cfif cfset
function: now len
Good!
2) Run this:
<cfset outerQuery = queryNew("BreakThe", "", [["InnerGrouped"],["QueryLoop"]]) />
<cfset tagsAndFunctions = queryNew("type,name", "", [["tag","cfif"],["tag","cfset"],["function","now"],["function","len"]]) />
<cfloop query="outerQuery">
<cfloop query="tagsAndFunctions" group="type">
<cfoutput>#type#: </cfoutput>
<cfloop><cfoutput>#name# </cfoutput></cfloop><br />
</cfloop>
</cfloop>
Expected Output:
tag: cfif cfset
function: now len
tag: cfif cfset
function: now len
Actual Output:
tag: cfif cfset
tag: cfif cfset
Bad!
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3740141
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: