TransactionSetSavepoint
Method Signature
TransactionSetSavepoint(savepoint=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Using TransactionSetSavepoint with TransactionRollback
transaction {
queryExecute( "INSERT INTO vehicles (id,make) VALUES (8, 'Ford' )", {}, { datasource : "carDB" } );
transactionSetSavepoint( 'insert' );
queryExecute( "UPDATE developers SET name = 'Chevrolet' WHERE id=8", {}, { datasource : "carDB" } );
transactionSetSavepoint( 'update' );
// more stuff ...
transactionRollback( 'insert' );
}Roll back to a specified savepoint
Related
Last updated
Was this helpful?
