tracker issue : CF-3043875

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

Bug 86955:There is no way to "get" the default datasource set in the application

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Eric Twilegar / Eric Twilegar (twillerror)

Created: 06/23/2011

Components: Core Runtime, Application

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

There is no way to "get" the default datasource set in the application.cfc from other code.
Method:

Create an application.cfc. Put a <cfset this.datasource = "someDSN" > in it.In a CFM or CFC that uses this application.cfc try and determine what it is...
Result:

You can not set this.datasource in application.cfc to set a default datasource. Then it is never accessible again.  Much of our older code requires us to pass it. To do this we have to set values into application scope, etc...also for some debugging it would nice to output what it is... Can we add getAppDatasource or just expose it in the application scope somehow?

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

Watson Bug ID:	3043875

External Customer Info:
External Company:  
External Customer Name: Eric Twilegar
External Customer Email: 3D9A02F5446CCE0A992015D5
External Test Config: 06/23/2011

Attachments:

Comments: