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:37:22 +13:00
parent 7f2718cfea
commit 7205a9861f
1 changed files with 16 additions and 2 deletions

View File

@ -956,11 +956,18 @@ class SQLite3Database extends SS_Database {
else
return false;
}
/**
* @deprecated 1.2 use transactionStart() (method required for 2.4.x)
*/
public function startTransaction($transaction_mode=false, $session_characteristics=false){
$this->transactionStart($transaction_mode, $session_characteristics);
}
/*
* Start a prepared transaction
*/
public function startTransaction($transaction_mode=false, $session_characteristics=false){
public function transactionStart($transaction_mode=false, $session_characteristics=false){
DB::query('BEGIN');
}
@ -985,10 +992,17 @@ class SQLite3Database extends SS_Database {
}
}
/**
* @deprecated 1.2 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(){
DB::query('COMMIT;');
}