Tim,
>From my understanding, it was a bug in 6.0 that allowed there to be
nested transactions. Really the only actions that belong insinde a
transaction is a commit or a rollback.
Having said that, I had this problem with some code I was working with
that might include code that was inside a transaction of its own.
Very basic example of what we ended up doing follows:
<cfif NOT request.transaction_open>
<cftransaction>
<cfset request.transaction_open = true>
<cfinclude template= "code that was in its own transaction">
</cftransaction>
<cfset request.transaction_open = false>
<cfelse>
<!--- This is being called from inside an existing transaction --->
<cfinclude template= "code that was in its own transaction">
</cfif>
Hope it helps.
-Kevin
----- Original Message -----
From: Timothy Ford <[EMAIL PROTECTED]>
Date: Thu, 17 Jun 2004 10:01:05 -0400
Subject: [CFCDev] Nested cftransaction error in CFMX 6.1
To: [EMAIL PROTECTED]
Anyone ever get this error with nested transactions in
6.1?
Nested
transactions are not supported.
You cannot nest a
cftransaction tag within another cftransaction tag. Check for a
cftransaction tag on the page that called the CFC.
They worked in 6.0.
Anyone know of a resolution?
Thanks
Tim
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]