Title:
queryNew rowData attribute does not accept coldfusion.runtime.ArgumentCollection
| View in TrackerStatus/Resolution/Reason: To Fix//Investigate
Reporter/Name(from Bugbase): Henry Ho / Henry Ho ()
Created: 02/10/2017
Components: Language, Functions
Versions: 11.0
Failure Type: Others
Found In Build/Fixed In Build: 11,0,11,301867 /
Priority/Frequency: Normal /
Locale/System: / Win All
Vote Count: 0
Problem Description:
queryNew rowData attribute does not accept a struct with java type coldfusion.runtime.ArgumentCollection
Steps to Reproduce:
function test(arg1)
{
return queryNew(structKeyList(arguments), "varchar", arguments);
}
test(arg1="ABC");
Actual Result:
coldfusion.runtime.QueryFunction$QueryRowTypeException: Only struct or array of struct is allowed for adding a row.
at coldfusion.runtime.QueryFunction.QueryAddRow(QueryFunction.java:390)
at coldfusion.runtime.CFPage.QueryNew(CFPage.java:1241)
Expected Result:
works as is, no error
Any Workarounds:
duplicate or structAppend "arguments" to a struct before passing into queryNew
Attachments:
Comments: