tracker issue : CF-3041442

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

Bug 82861:If you have a function with cfthread in it, and use local

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 05/13/2010

Components: Language

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 5

Problem:

If you have a function with cfthread in it, and use local.x for a query name, and try to use the local scope to refer to the data, you will get an error - randomly. The code below will fail about 60-70% of the time.
Method:

<cffunction name="test"><cfset local = structNew()><cfthread name="doogus" action="run"></cfthread><cfquery name="local.foo" datasource="ormtest">select distinct id, namefrom [user]where id > 0</cfquery><cfdump var="#local#"><cfreturn valueList(local.foo.id)></cffunction><cfoutput>#test()# #now()#</cfoutput><p>
Result:

Varies - depends on usage.

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

Watson Bug ID:	3041442

External Customer Info:
External Company:  
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 05/13/2010

Attachments:

Comments: