tracker issue : CF-3037175

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

Bug 74799:No access to cfquery's Result struct when using new query()

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Daryl Banttari / Daryl Banttari (cfprimer_guy)

Created: 01/06/2009

Components: Database, CFQuery

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Problem:

No access to cfquery's Result struct when using new query().  setResult() throws no exception, but no struct appears in the caller's scope after execute() succeeds.

Method:

<cfscript>
q = new Query();
q.setDatasource("test");
q.setSQL("select * from stuff");
q.setResult("rsmd");
rs = q.execute();
</cfscript>

<cfdump var="#rsmd#">
Result:

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

Watson Bug ID:	3037175

External Customer Info:
External Company:  
External Customer Name: Daryl Banttari
External Customer Email: 63180D784462A9A5992015D5
External Test Config: 01/06/2009

Attachments:

Comments:

Looks like the following works (per S.Corfield): <cfdump var="#q.getResult()#"/> Strange that setResult doesn't fail. Implicit setter?
Vote by External U.
24259 | November 10, 2011 07:11:02 PM GMT