mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 05:39:10 +02:00
API CHANGE: Transaction stubs created
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@87893 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7c46b8957d
commit
611af45993
@ -28,6 +28,8 @@ class MySQLDatabase extends Database {
|
|||||||
|
|
||||||
private static $connection_charset = null;
|
private static $connection_charset = null;
|
||||||
|
|
||||||
|
private $supportsTransactions=false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the character set for the MySQL database connection.
|
* Sets the character set for the MySQL database connection.
|
||||||
*
|
*
|
||||||
@ -861,6 +863,43 @@ class MySQLDatabase extends Database {
|
|||||||
|
|
||||||
return "(MATCH ($fieldNames) AGAINST ('$SQL_keywords' $boolean) + MATCH ($fieldNames) AGAINST ('$SQL_htmlEntityKeywords' $boolean))";
|
return "(MATCH ($fieldNames) AGAINST ('$SQL_keywords' $boolean) + MATCH ($fieldNames) AGAINST ('$SQL_htmlEntityKeywords' $boolean))";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Does this database support transactions?
|
||||||
|
*/
|
||||||
|
public function supportsTransactions(){
|
||||||
|
return $this->supportsTransactions;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* Start a prepared transaction
|
||||||
|
* See http://developer.postgresql.org/pgdocs/postgres/sql-set-transaction.html for details on transaction isolation options
|
||||||
|
*/
|
||||||
|
public function startTransaction($transaction_mode=false, $session_characteristics=false){
|
||||||
|
//Transactions not set up for MySQL yet
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a savepoint that you can jump back to if you encounter problems
|
||||||
|
*/
|
||||||
|
public function transactionSavepoint($savepoint){
|
||||||
|
//Transactions not set up for MySQL yet
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Rollback or revert to a savepoint if your queries encounter problems
|
||||||
|
* If you encounter a problem at any point during a transaction, you may
|
||||||
|
* need to rollback that particular query, or return to a savepoint
|
||||||
|
*/
|
||||||
|
public function transactionRollback($savepoint=false){
|
||||||
|
//Transactions not set up for MySQL yet
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Commit everything inside this transaction so far
|
||||||
|
*/
|
||||||
|
public function endTransaction(){
|
||||||
|
//Transactions not set up for MySQL yet
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user