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

@ -919,6 +919,14 @@ class MySQLDatabase extends SS_Database {
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
* See http://developer.postgresql.org/pgdocs/postgres/sql-set-transaction.html for details on transaction isolation options
@ -943,6 +951,14 @@ class MySQLDatabase extends SS_Database {
//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
*/