Created
September 5, 2012 00:52
-
-
Save owenallenaz/3628639 to your computer and use it in GitHub Desktop.
Throw this in a folder and execute index.cfm and you'll see a multiple datasource error, even though only one datasource is used inside the cftransaction.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent> | |
<cfset this.name = "mySpecialApp"> | |
<cfset this.datasource = "rc_cms"> | |
<cfset this.ormEnabled = true> | |
<cffunction name="onError"> | |
<cfdump var="#arguments#"> | |
</cffunction> | |
</cfcomponent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent persistent="true" table="supportedLanguages" cacheuse="transactional"> | |
<!--- standard fields ---> | |
<cfproperty name="languageid" fieldtype="id" generator="identity"> | |
<cfproperty name="code" notnull="true"> | |
<cfproperty name="label" notnull="true"> | |
<cfproperty name="active" type="boolean" default="true" dbdefault="1" notnull="true"> | |
</cfcomponent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- If you comment out this line you do not get the error ---> | |
<cfset EntityLoad("googleTranslateLanguagesOrm")> | |
<cftransaction> | |
<cftry> | |
<cfquery name="local.qry" datasource="imagecdn"> | |
SELECT count(*) FROM jobs | |
</cfquery> | |
<cfcatch> | |
<cftransaction action="rollback"/> | |
</cfcatch> | |
</cftry> | |
</cftransaction> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- call this file to reset the app while testing (if need be) ---> | |
<cfset ApplicationStop()> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment