Railo 4.2 Reference
Choose a tag:

Tag <CFTRANSACTION>

Groups multiple queries into a single unit. The cftransaction tag provides commit and rollback processing.

Body

This tag must have a body.

Example

	<cftransaction
		[action="string"]
		[isolation="string"]>

	</cftransaction>
This tag is also supported within cfscript
	<cfscript>
		transaction
		[action="string"]
		[isolation="string"] {

	}
	</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
action string No - begin: The start of the block of code to execute.
  • commit: Commits a pending transaction.
  • rollback: Rolls back a pending transaction.
  • setsavepoint: Saves a specific state within a transaction 
  • isolation string No ODBC lock type.