tracker issue : CF-4126644

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

[ANeff] Bug for: BIF vs array notation wrt immutable

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

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

Created: 03/09/2016

Components: Language

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 1

Immutable query can be modified using array notation.

Repro:

<cfscript>
  q1 = queryNew("myCol", "varchar", [["a"]]);
  q2 = queryExecute("SELECT myCol FROM q1", [], {dbtype="query", mutable=false});
  q2.myCol[1] = "b";
  writeDump(q2.myCol);//returns "b"; should return exception "Query object being modified is not mutable"
</cfscript>

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

Watson Bug ID:	4126644

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: Reason newValue: AsDesigned oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: Date Closed newValue: 2015-09-09 03:30:48.0 oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: Closed By newValue: pnayak oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: Owner newValue: Blank oldValue: pnayak oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: Status newValue: Withdrawn oldValue: Unverified oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-09-09 10:30:48.0 action: updated fieldName: Owner newValue: pnayak oldValue: aksriniv oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 06:22:55.0 action: updated fieldName: QE Assigned newValue: pnayak oldValue: aksriniv oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 06:22:55.0 action: updated fieldName: Dev Assigned newValue: sandeepp oldValue: sanniset oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 06:22:55.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-08-26 07:53:51.0
Comment by CFwatson U.
3627 | March 09, 2016 04:24:09 AM GMT
This defeats the whole purpose of immutable data structures!
Vote by External U.
3629 | March 09, 2016 04:24:10 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: "a mutable db query" should've been "an immutable db query" Date Added :2015-09-11 09:45:51.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Adobe, yes, the QoQ was pseudo-code to 'fake' a db query. My real concern was array notation could modify a mutable db query. Excellent that it will be handled internally. Thanks very much! Date Added :2015-09-11 09:33:20.0 Added By:pnayak Note Added: The mutable attribute is intended for use with DB queries that are cached. The use of this attribute with in-memory query would not make much sense. Anyway, we are looking into redesigning the implementation, to handle it internally, rather than using the attribute. So, closing this. Date Added :2015-09-09 10:30:49.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2015-08-26 07:49:48.0
Comment by CFwatson U.
3628 | March 09, 2016 04:24:11 AM GMT