tracker issue : CF-4202044

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

[ANeff] Bug for: Aether missed correcting some member functions

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

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

Created: 04/19/2018

Components: Language, Member Functions

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.0.308164 / 2018.0.0.309300

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issues:
1) array.clear() returns modified array (good), but struct.clear() returns boolean (bad)
2) query.deleteColumn() and query.deleteRow() return modified query (good), but:
2a) query.addColumn() returns index of added column (bad)
2b) query.addRow() returns number of added row (bad)
2c) query.setCell() returns boolean (bad)

Aether is updating member functions to return useful values, so these need fixed:
- struct.clear()
- query.addColumn()
- query.addRow()
- query.setCell()

Attachments:

Comments:

Repro code (see comments for expected result): <cfscript> s = {foo="bar"} writeDump(s.clear())//returns YES (should return empty object like arrayObj.Clear()) q = queryNew("myColumn1") writeDump(q.addColumn("myColumn2", "varchar", []))//returns 2 (should return modified query like queryDeleteColumn/queryDeleteRow) q = queryNew("myColumn") writeDump(q.addRow(1))//returns 1 (should return modified query like queryDeleteColumn/queryDeleteRow) q = queryNew("myColumn") q.addRow(1) writeDump(q.setCell("myColumn", "foo", 1))//returns 1 (should return modified query like queryDeleteColumn/queryDeleteRow) </cfscript> Thanks!, -Aaron
Comment by Aaron N.
27426 | April 19, 2018 09:07:47 AM GMT
Hi Adobe, Are these going to be fixed in CF2018 GM? They should. Thanks!, -Aaron
Comment by Aaron N.
27427 | April 26, 2018 05:42:41 AM GMT
 We have added the support for Query.AddRow, Query.Addcolumn, Query.SetCell functions. We have not added structObj.clear because it will cause the bug ,CF-4201614.  
Comment by Suchika S.
27813 | May 15, 2018 10:16:02 AM GMT