Status/Resolution/Reason: To Fix//Investigate
Reporter/Name(from Bugbase): David Mitchell / David Mitchell ()
Created: 09/23/2017
Components: Language, Null Support
Versions: 11.0
Failure Type: Crash
Found In Build/Fixed In Build: ColdFusion 11 Update 13 /
Priority/Frequency: Normal / All users will encounter
Locale/System: / Windows 10 64 bit
Vote Count: 0
Problem Description:
When getting a row from a query via getQueryRow(), column values become 'undefined'. The keys are present in the struct but attempting to get the value results in an exception.
Steps to Reproduce:
{code:java}
<cfscript>
q = queryExecute("select null as ncol, '' as ecol", { }, { datasource = "myfrst" } );
writeDump(q);
r = queryGetRow(q, 1);
writeDump(r);
writeDump(structKeyList(r));
writeDump(structKeyExists(r, 'ncol'));
for(k in r){
writeDump(r[k]);
}
</cfscript>
{code}
Actual Result:
An exception is raised in the for loop.
Expected Result:
I would expect that the values would continue to be represented as a empty string.
Any Workarounds:
Attachments:
Comments: