mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Transaction stub methods for better cross 2.x and 3.x compat
The transactionStart() naming is 3.x, and used by some modules which are otherwise still 2.x compatible. Specifically, this was added to avoid branching the payment module into separate 2.x and 3.x compatible branches.
This commit is contained in:
parent
56ad1d027e
commit
a8a10f8a1a
@ -918,6 +918,14 @@ class MySQLDatabase extends SS_Database {
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forwards compatible NO-OP method for better cross release
|
||||
* compatibility of modules (2.x and 3.x).
|
||||
*/
|
||||
public function transactionStart($transaction_mode=false, $session_characteristics=false) {
|
||||
// NO-OP
|
||||
}
|
||||
|
||||
/*
|
||||
* Start a prepared transaction
|
||||
@ -942,6 +950,14 @@ class MySQLDatabase extends SS_Database {
|
||||
public function transactionRollback($savepoint=false){
|
||||
//Transactions not set up for MySQL yet
|
||||
}
|
||||
|
||||
/**
|
||||
* Forwards compatible NO-OP method for better cross release
|
||||
* compatibility of modules (2.x and 3.x).
|
||||
*/
|
||||
public function transactionEnd($transaction_mode=false, $session_characteristics=false) {
|
||||
// NO-OP
|
||||
}
|
||||
|
||||
/*
|
||||
* Commit everything inside this transaction so far
|
||||
|
Loading…
Reference in New Issue
Block a user