Пример #1
0
 public function rollback()
 {
     if ($this->_transactionLevel === 1) {
         return parent::rollback();
     }
     $this->_transactionLevel--;
     return $this;
 }
Пример #2
0
 /**
  * Rollback DB transaction
  *
  * @return App_Zend_Db_Adapter_Mysqli
  */
 public function rollback()
 {
     if ($this->_txLevel === 1) {
         //        error_log("rollback tx for real");
         parent::rollback();
     } else {
         //        error_log("rollback tx " . $this->_txLevel-1);
     }
     $this->_txLevel--;
     return $this;
 }
Пример #3
0
 /**
  * Rollback DB transaction
  *
  * @return Varien_Db_Adapter_Pdo_Mysql
  */
 public function rollback()
 {
     if ($this->_transactionLevel === 1) {
         $this->_debugTimer();
         parent::rollback();
         $this->_debugStat(self::DEBUG_TRANSACTION, 'ROLLBACK');
     }
     --$this->_transactionLevel;
     return $this;
 }
Пример #4
0
 /**
  * Rollback DB transaction
  *
  * @return Varien_Db_Adapter_Pdo_Mysql
  */
 public function rollback()
 {
     if ($this->_transactionLevel === 1) {
         $this->_debugTimer();
         parent::rollback();
         $this->_debugStat(self::DEBUG_TRANSACTION, 'ROLLBACK');
     } elseif ($this->_transactionLevel === 0) {
         throw new Exception('Asymmetric transaction rollback.');
     }
     --$this->_transactionLevel;
     return $this;
 }