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