Exemplo n.º 1
0
 public function beginTransaction()
 {
     if ($this->_transactionLevel === 0) {
         parent::beginTransaction();
     }
     $this->_transactionLevel++;
     return $this;
 }
Exemplo n.º 2
0
 function beginTransaction()
 {
     $this->_transaction_depth++;
     if ($this->_transaction_depth > 0) {
         return;
     }
     return parent::beginTransaction();
 }
Exemplo n.º 3
0
 /**
  * Begin new DB transaction for connection
  *
  * @return App_Zend_Db_Adapter_Mysqli
  */
 public function beginTransaction()
 {
     if ($this->_txLevel === 0) {
         //error_log("begin tx for real");
         parent::beginTransaction();
     } else {
         //error_log("begin tx " . $this->_txLevel+1);
     }
     $this->_txLevel++;
     return $this;
 }
Exemplo n.º 4
0
 /**
  * Begin new DB transaction for connection
  *
  * @return Varien_Db_Adapter_Pdo_Mysql
  */
 public function beginTransaction()
 {
     if ($this->_transactionLevel === 0) {
         $this->_debugTimer();
         parent::beginTransaction();
         $this->_debugStat(self::DEBUG_TRANSACTION, 'BEGIN');
     }
     ++$this->_transactionLevel;
     return $this;
 }
Exemplo n.º 5
0
 /**
  * Begin new DB transaction for connection
  *
  * @return $this
  * @throws \Exception
  */
 public function beginTransaction()
 {
     if ($this->_isRolledBack) {
         throw new \Exception(AdapterInterface::ERROR_ROLLBACK_INCOMPLETE_MESSAGE);
     }
     if ($this->_transactionLevel === 0) {
         $this->_debugTimer();
         parent::beginTransaction();
         $this->_debugStat(self::DEBUG_TRANSACTION, 'BEGIN');
     }
     ++$this->_transactionLevel;
     return $this;
 }