/** * Set autoCommit On * Warning, not all databases support those functionalities. * * @access public * @return bool */ function setAutoCommitOn() { if ($this->isOracle()) { if ($this->_bIsOracle === true) { return sqlrcon_autoCommitOn($this->conn_id); } return false; } }
public function rollbackTransaction() { if ($this->_transaction) { $this->_transaction = false; $ret = sqlrcon_rollback($this->_conn); if ($ret === 0) { throw new DatabaseException('Commit failed'); } else { if ($ret === -1) { throw new DatabaseException('An error occurred. Commit failed'); } } sqlrcon_autoCommitOn($this->_conn); } }