mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
API CHANGE Renamed transactions methods from endTransaction() to transactionEnd(), startTransaction() to transactionStart() to comply with new sapphire trunk API
This commit is contained in:
parent
e15e444acc
commit
6f5de764d2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user