function CommitTrans($ok = true) { if ($this->transOff) { return true; } if (!$ok) { return $this->RollbackTrans(); } if ($this->transCnt) { $this->transCnt -= 1; } $this->_autocommit = true; @odbtp_set_attr(ODB_ATTR_TRANSACTIONS, ODB_TXN_READCOMMITTED, $this->_connectionID); //set transaction off $ret = odbtp_commit($this->_connectionID); return $ret; }
function CommitTrans($ok = true) { if ($this->transOff) { return true; } if (!$ok) { return $this->RollbackTrans(); } if ($this->transCnt) { $this->transCnt -= 1; } $this->autoCommit = true; if ($ret = @odbtp_commit($this->_connectionID)) { $ret = @odbtp_set_attr(ODB_ATTR_TRANSACTIONS, ODB_TXN_NONE, $this->_connectionID); } //set transaction off return $ret; }
function CommitTrans($ok=true) { if ($this->transOff) return true; if (!$ok) return $this->RollbackTrans(); if ($this->transCnt) $this->transCnt -= 1; $this->_autocommit = true; if( ($ret = odbtp_commit($this->_connectionID)) ) $ret = @odbtp_set_attr(ODB_ATTR_TRANSACTIONS, ODB_TXN_NONE, $this->_connectionID);//set transaction off return $ret; }