Status/Resolution/Reason: To Fix//Investigate
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 08/20/2014
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 2
Repro:
<cfscript>
// test.cfm
q = queryNew("id,data", "integer,varchar",[
[11, "aa"],
[22, "bb"],
[33, "cc"]
]);
for (row in q){
writeOutput("#q.currentRow#:#q.id#:#q.data#<br>"); // currentrow works, but others do no
}
</cfscript>
On Railo:
1:11:aa
2:22:bb
3:33:cc
On CF:
1:11:aa
2:11:aa
3:11:aa
The internal row pointer has been partially exposed just for the currentRow, but it doesn't work for fetching the data from the currentRow. If you're gonna implement *some* of the functionality; you need to implement all of it: it's poor / lazy language design not to. Railo has done the correct thing here.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3808648
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: