|
@@ -93,9 +93,6 @@ trait PDODriverTrait {
|
|
|
*/
|
|
*/
|
|
|
public function beginTransaction() {
|
|
public function beginTransaction() {
|
|
|
$this->connect();
|
|
$this->connect();
|
|
|
- if ($this->_connection->inTransaction()) {
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
return $this->_connection->beginTransaction();
|
|
return $this->_connection->beginTransaction();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -106,9 +103,6 @@ trait PDODriverTrait {
|
|
|
*/
|
|
*/
|
|
|
public function commitTransaction() {
|
|
public function commitTransaction() {
|
|
|
$this->connect();
|
|
$this->connect();
|
|
|
- if (!$this->_connection->inTransaction()) {
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
return $this->_connection->commit();
|
|
return $this->_connection->commit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -118,9 +112,6 @@ trait PDODriverTrait {
|
|
|
* @return boolean true on success, false otherwise
|
|
* @return boolean true on success, false otherwise
|
|
|
*/
|
|
*/
|
|
|
public function rollbackTransaction() {
|
|
public function rollbackTransaction() {
|
|
|
- if (!$this->_connection->inTransaction()) {
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
return $this->_connection->rollback();
|
|
return $this->_connection->rollback();
|
|
|
}
|
|
}
|
|
|
|
|
|