tracker issue : CF-4121949

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

[ANeff] Doc Bug for: managing complex objects

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 02/25/2016

Components: Documentation

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Trivial / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 0

https://helpx.adobe.com/coldfusion/developing-applications/accessing-and-using-data/using-query-of-queries/query-of-queries-user-guide.html says:
--------------------------------------------
Managing complex objects

You cannot use Query Of Queries on a recordset that contains complex objects, such as arrays and structures.
--------------------------------------------

That is not true. QoQ can be used on recordsets containing complex objects. Repro:

<cfscript>
  q1 = queryNew("a", "varchar", [["a"]]);
  q2 = queryNew("b,c,d,e", "object,object,object,integer", [[q1, ["foobar"], {foo="bar"}, 1]]);
  q3 = queryExecute("SELECT * FROM q2 WHERE e = 1", [], {dbtype="query"});
  writeDump(q3);
</cfscript>

Actual and expected result: No error thrown (good). Confirmed in CF11 Update 7 and CF2016.

Thus, that entire "Managing complex objects" section should be removed from the docs.

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

Watson Bug ID:	4121949

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

Attachments:

Comments:

Hi Aaron, Updated the doc at: https://helpx.adobe.com/coldfusion/developing-applications/accessing-and-using-data/using-query-of-queries/query-of-queries-user-guide.html Thank you.
Comment by External U.
4451 | February 26, 2016 02:06:59 AM GMT
Hi Saurav, You're very welcome! I've confirmed the update. Thanks!, -Aaron
Comment by External U.
4452 | March 11, 2016 02:09:32 PM GMT
Hi Aaron, Thank you. -Saurav
Comment by External U.
4453 | March 12, 2016 02:27:50 AM GMT
Are there any limitations that should be noted? EG: ordering or filtering on columns with complex data in them? Your example, Aaron, is one of demonstrating something works, rather than trying to work out where it doesn't work, so I think is too superficial for this particular exercise.
Comment by External U.
4454 | March 12, 2016 06:24:59 AM GMT