Dave Merrill
10/09/2024, 2:45 PMIf you do not specify a value for the action attribute, automatic transaction processing proceeds as follows:
If the cfquery operations within the transaction block complete without an error, the transaction is committed.
If a cfquery tag generates an error within a cftransaction block, all cfquery operations in the transaction roll back.
If there's a try/catch, does that affect automatic transaction processing?Robert Zehnder
10/09/2024, 2:46 PMRobert Zehnder
10/09/2024, 2:47 PMcatch
blockaliaspooryorik
websolete
10/09/2024, 3:26 PMDave Merrill
10/09/2024, 3:48 PMTim
10/09/2024, 5:51 PMTim
10/09/2024, 5:53 PMTim
10/09/2024, 5:54 PMTim
10/09/2024, 5:55 PMDave Merrill
10/09/2024, 6:46 PMRobert Zehnder
10/09/2024, 6:52 PMTim
10/09/2024, 6:55 PM• You can now nest cftransaction tags. Typically, ColdFusion 9 does not support nested transactions, but you can embed one cftransaction tag inside another. If you nest these tags, only the outermost cftransaction tag takes effect.
• This feature lets you write functions that must run in a transaction without considering whether the function is called by code that is inside a cftransaction tag. Use a cftransaction tag in the function. If the calling code is in a transaction, the tag has no effect. If the calling code is not in a transaction, the tag starts the transaction.When it says "If the calling code is in a transaction, the tag has no effect." what it means is "if you try and start a transaction within another one, it will have no effect...." If you commit or rollback the transaction that didn't get started, it's not ignoring that one....
Dave Merrill
10/09/2024, 7:47 PM