Commit aa2ed45a authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #569 from BenMorel/fix-type

Fixed type and initialization value of $_nestTransactionsWithSavepoints
parents e422e5e4 099add2b
...@@ -142,9 +142,9 @@ class Connection implements DriverConnection ...@@ -142,9 +142,9 @@ class Connection implements DriverConnection
/** /**
* If nested transactions should use savepoints. * If nested transactions should use savepoints.
* *
* @var integer * @var boolean
*/ */
private $_nestTransactionsWithSavepoints; private $_nestTransactionsWithSavepoints = false;
/** /**
* The parameters used during creation of the Connection instance. * The parameters used during creation of the Connection instance.
...@@ -1130,7 +1130,7 @@ class Connection implements DriverConnection ...@@ -1130,7 +1130,7 @@ class Connection implements DriverConnection
throw ConnectionException::savepointsNotSupported(); throw ConnectionException::savepointsNotSupported();
} }
$this->_nestTransactionsWithSavepoints = $nestTransactionsWithSavepoints; $this->_nestTransactionsWithSavepoints = (bool) $nestTransactionsWithSavepoints;
} }
/** /**
......
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