|
If I have a block of code that is going to call several
queries, and I have placed the queries into functions of a CFC, can I wrap
these calls into a single transaction? Basically I will have something like this. <!--- Update
several related tables ---> <cftransaction> <cfinvoke
component="#dataObj#" method="updateTable1" ..> <cfinvoke
component="#dataObj#" method="deleteTable2" .> <cfloop
from="1" to="#something# index="i"> <cfif
this EQ that> <cfinvoke
component="#dataObj#" method="insertTable2" .> <cfelse> <cfinvoke
component="#dataObj#" method="updateTable2" .> </cfif> </cfloop> </cftransaction> Will the <cftransaction> work here allowing all these
queries to be rolled back if any where to fail? -------------- |
- [CFCDev] Will this <cftransaction> work? Ian Skinner
- RE: [CFCDev] Will this <cftransaction> work? Kerry
- Re: [CFCDev] Will this <cftransaction> work? Bill Rawlinson
- Re: [CFCDev] Will this <cftransaction> w... Dave Carabetta
- Re: [CFCDev] Will this <cftransaction&g... Bill Rawlinson
- RE: [CFCDev] Will this <cftransaction> work? Stacy Young
