Commit e1f4a9cc by Qiang Xue

Added Connection::enableSavepoint.

parent bea9e3fc
...@@ -249,6 +249,11 @@ class Connection extends Component ...@@ -249,6 +249,11 @@ class Connection extends Component
*/ */
public $pdoClass; public $pdoClass;
/** /**
* @var boolean whether to enable [savepoint](http://en.wikipedia.org/wiki/Savepoint).
* Note that if the underlying DBMS does not support savepoint, setting this property to be true will have no effect.
*/
public $enableSavepoint = true;
/**
* @var Transaction the currently active transaction * @var Transaction the currently active transaction
*/ */
private $_transaction; private $_transaction;
......
...@@ -294,7 +294,7 @@ abstract class Schema extends Object ...@@ -294,7 +294,7 @@ abstract class Schema extends Object
*/ */
public function supportsSavepoint() public function supportsSavepoint()
{ {
return true; return $this->db->enableSavepoint;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment