tracker issue : CF-4126388

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: ordered struct exception in query.map() callback

| View in Tracker

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

Listed in the version 2016.0.02.299200 Issues Fixed doc
ordered struct throws exception in query.map() callback

Repro:

<cfscript>
  q1 = queryNew("foo", "integer", [["bar1"]]);
  q2 = q1.map(function(row,index,query){return [foo="bar3"];}, queryNew("foo", "integer", [["bar2"]]));
  writeDump(q2);
</cfscript>

Actual result: coldfusion.runtime.StructOrdered cannot be cast to coldfusion.runtime.Struct

Expected results:
Invalid data bar1 for CFSQLTYPE CF_SQL_INTEGER
Invalid data bar2 for CFSQLTYPE CF_SQL_INTEGER
Invalid data bar3 for CFSQLTYPE CF_SQL_INTEGER

Related ticket: 4117243

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126388

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Fix By Milestone newValue: Post Release oldValue: Alpha oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-29 12:53:18.0 action: updated fieldName: Fix By Product Milestone newValue: HF2 oldValue: Alpha oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-29 12:53:18.0 action: updated fieldName: Owner newValue: mchandna oldValue: awdhesh oprid: mchandna recordName: RQ_DEFECT timpestamp: 2016-02-15 09:12:59.0 action: updated fieldName: Dev Assigned newValue: mchandna oldValue: awdhesh oprid: mchandna recordName: RQ_DEFECT timpestamp: 2016-02-15 09:12:59.0 action: updated fieldName: QE Assigned newValue: suchsing oldValue: inoel oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:01:01.0 action: updated fieldName: Owner newValue: awdhesh oldValue: inoel oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Fix By Product Milestone newValue: Alpha oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Severity newValue: 3 oldValue: 2 oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Fix By Milestone newValue: Alpha oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Priority newValue: 3 oldValue: 0 oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0 action: updated fieldName: Reason newValue: BugVerified oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 06:56:03.0
Comment by CFwatson U.
4307 | March 09, 2016 01:53:31 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: The forum thread discussing this ticket is: http://prerelease.adobe.com/r/?8a4684765f0c45ac88a7a32ca253d00f Date Added :2016-02-12 15:46:34.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2016-02-12 15:15:14.0
Comment by CFwatson U.
4308 | March 09, 2016 01:53:32 AM GMT
test note
Comment by CFwatson U.
4309 | June 07, 2016 04:18:49 AM GMT
The fix for this bug is available as part of the early-access build for ColdFusion 2016 Update 2.
Comment by CFwatson U.
4310 | June 07, 2016 04:25:27 AM GMT