Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Language
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: RC1_v12 /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
queryNew() mistreats ordered struct
Repro 1 (3rd parameter is struct):
<cfscript>
s = [a="a",b="b"];
q = queryNew("a,b", "varchar,varchar", s);
writeDump(q);
</cfscript>
Actual result: exception: "Only struct or array of struct is allowed for adding a row"
Expected results: query created successfully
Repro 2 (3rd parameter is array-of-struct):
<cfscript>
s = [a="a",b="b"];
q = queryNew("a,b", "varchar,varchar", [s]);
writeDump(q);
</cfscript>
Actual result: puts s into q.a[1] (very bad b/c this is data corruption)
Expected results: query created correctly
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126387
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: