tracker issue : CF-4200108

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

[ANeff] Bug for: dot notation breaks queryExecute() in closure, when QoQ'ing a variable in owner function

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

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

Created: 11/07/2017

Components: Language, Closures

Versions: 2016

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: 2016.0.05.303689 /

Priority/Frequency: Normal / Very few users will encounter

Locale/System: / Win 2012 Server x64

Vote Count: 0

Issue: dot notation breaks queryExecute() in closure, when QoQ'ing a variable in owner function

Repro:

{code:java}
<cfscript>
  function f() {
	  var a = ["a"];
	  var q = queryNew("myColumn", "", [["b"]]);
	  var s = {q = q};
	  a.each(function() {
		  try {
			  variables.foo = queryExecute("SELECT * FROM s.q", [], {dbtype="query"});
		  }
		  catch(any e) {variables.foo = {detail=e.detail, isQuery=isQuery(s.q), row=queryGetRow(s.q, 1), columnList=s.q.ColumnList, recordCount=s.q.RecordCount};}
	  });
  }
  f();
  if(variables.keyExists("foo")) {
	  writeDump(variables.foo);
  }
</cfscript>
{code}


Actual Result: exception

Expected Result: no exception

Attachments:

Comments: