transactionCommit

Commit a pending transaction

transactionCommit() → returns void

Examples
Sample code invoking the transactionCommit function

In this code, transactionCommit() will commit the pending transaction, which is any database queries run in the transaction block.


transaction { 
 try { 
 // code to run 
 transaction action="commit"; 
 } 
 catch(any e) { 
  transaction action="rollback"; 
  } 
 }

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub