tracker issue : CF-4117325

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

[ANeff] Bug for: duplicate(query) breaks query.getResult()

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 02/12/2016

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Very few users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 2016.0.02.299200 Issues Fixed doc
duplicate(query) breaks query.getResult()

Repro:

<cfscript>
  q1 = queryExecute("SELECT * FROM art WHERE artID = 1", [], {datasource="cfartgallery", cachedwithin=createTimeSpan(0,0,0,10)});
  writeDump(q1.getResult());//displays result struct
  q2 = duplicate(q1);
  writeDump(q2.getResult());//displays undefined
</cfscript>

Actual result: q2.getResult() displays undefined

Expected result: q2.getResult() displays result struct

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

Watson Bug ID:	4117325

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

Aaron, Did you log this bug for CF11 or CF2016? Are you also facing this issue in CF11?
Comment by Nimit S.
4773 | February 23, 2016 04:36:49 AM GMT
Hi Nimit, I logged it for CF11. The issue exists in CF11 (verified in Update 7) and CF2016. This ticket can be re-assigned to CF2016. I don't need it fixed for CF11 now - just CF2016. If anyone else needs it for CF11, then maybe consider it also for CF11? But, again, a CF2016 fix would be fine by me. Thank you for requesting more info. Thanks!, -Aaron
Comment by External U.
4774 | February 23, 2016 08:37:22 AM GMT
Aaron, It is a duplicate of bug #CF-4116195 which was also logged by you. Can you please confirm and let me know so that I can close the other one?
Comment by Nimit S.
4775 | February 23, 2016 11:28:10 PM GMT
Hi Nimit, CF-4116195 is for duplicate() not including rows/columns of cached queries. It is marked Fixed and I've confirmed the fix. This ticket CF-4117325 is for duplicate() breaking .getResult(). This issue still exists (just now confirmed it again). So they seem like different issues to me? Thanks!, -Aaron
Comment by External U.
4776 | February 24, 2016 12:07:38 AM GMT
Thanks for the confirmation Aaron. These are indeed two different issues. I have verified it and it is happening on CF11 base build as well. We will investigate it and get it fixed.
Comment by Nimit S.
4777 | February 24, 2016 02:02:51 AM GMT
Hi Nimit, You're very welcome and thanks very much for confirming it! Thanks!, -Aaron
Comment by External U.
4778 | March 09, 2016 03:21:13 PM GMT
This issue is fixed now and the fix for this issue will be available as part of Update 2 of ColdFusion 2016.
Comment by Nimit S.
4779 | April 11, 2016 05:19:00 AM GMT
test note
Comment by CFwatson U.
4780 | June 07, 2016 04:19:32 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.
4781 | June 07, 2016 04:26:30 AM GMT