/** * Rollback Transaction * * @access public * @return bool */ function trans_rollback() { if (!$this->trans_enabled) { return TRUE; } // When transactions are nested we only begin/commit/rollback the outermost ones if ($this->_trans_depth > 0) { return TRUE; } $ret = sasql_rollback($this->conn_id); return $ret; }
/** * Rollback last commit action * @return boolean TRUE if is successful or FALSE otherwise. */ public function rollback() { return sasql_rollback($this->connection); }
/** * {@inheritdoc} * * @throws SQLAnywhereException */ public function rollBack() { if (!sasql_rollback($this->connection)) { throw SQLAnywhereException::fromSQLAnywhereError($this->connection); } $this->endTransaction(); return true; }