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:
Ingo Schommer 2013-02-26 13:48:52 +01:00
parent 56ad1d027e
commit a8a10f8a1a

View File

@ -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