mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 15:05:45 +00: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
7fb82f88d1
commit
2b0ffdb4e0
@ -1749,6 +1749,13 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 1.0 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
|
||||
@ -1784,6 +1791,13 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
DB::query('ROLLBACK;');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 1.0 Use transactionEnd() (method required for 2.4.x)
|
||||
*/
|
||||
public function endTransaction(){
|
||||
$this->transactionEnd();
|
||||
}
|
||||
|
||||
/*
|
||||
* Commit everything inside this transaction so far
|
||||
|
Loading…
x
Reference in New Issue
Block a user