API CHANGE Renamed transactions methods from endTransaction() to transactionEnd(), startTransaction() to transactionStart() to comply with new sapphire trunk API

This commit is contained in:
Ingo Schommer 2011-03-11 16:41:14 +13:00
parent e15e444acc
commit 6f5de764d2

View File

@ -1474,11 +1474,18 @@ class MSSQLDatabase extends SS_Database {
else
return false;
}
/**
* @deprecated Use transactionStart() (method required for 2.4.x)
*/
public function startTransaction($transaction_mode=false, $session_characteristics=false){
$this->transactionStart($transaction_mode, $session_characteristics);
}
/**
* Start transaction. READ ONLY not supported.
*/
public function startTransaction($transaction_mode=false, $session_characteristics=false){
public function transactionStart($transaction_mode=false, $session_characteristics=false){
if($this->mssql) {
DB::query('BEGIN TRANSACTION');
} else {
@ -1511,11 +1518,18 @@ class MSSQLDatabase extends SS_Database {
}
}
}
/**
* @deprecated Use transactionEnd() (method required for 2.4.x)
*/
public function endTransaction(){
$this->transactionEnd();
}
/**
* Commit everything inside this transaction so far
*/
public function endTransaction(){
public function transactionEnd(){
if($this->mssql) {
DB::query('COMMIT TRANSACTION');
} else {