tracker issue : CF-3037173

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

Bug 74797:(Watson Migration Closure)Please allow chaining of Query() methods:

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

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: 2

Problem:

Please allow chaining of Query() methods:

rs = new Query().setDatasource("test").setSQL("select * from stuff").execute();

Sure, it can make for some long lines of code, but these setters don't currently return anything, so this would be trivial to implement, and a nice convenience.  Esp for shorter chains, like:

qry = new Query().setDatasource("test");
rs = qry.setSQL("select * from stuff").execute();


Method:


Result:

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

Watson Bug ID:	3037173

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

Attachments:

Comments:

This bug has been voted..
Vote by External U.
24283 | November 10, 2011 07:10:59 PM GMT
Definitely a feature I'd like to see.
Vote by External U.
24284 | November 10, 2011 07:11:00 PM GMT
Please use queryExecute function introduced in ColdFusion 11. We have stopped making any enhancements to query.cfc
Comment by Nimit S.
24282 | December 05, 2014 12:19:16 AM GMT