/** * {@inheritdoc} * * @throws SQLAnywhereException */ public function commit() { if (!sasql_commit($this->connection)) { throw SQLAnywhereException::fromSQLAnywhereError($this->connection); } $this->endTransaction(); return true; }
public function __destruct() { return sasql_commit($this->connection); }
/** * Commit Transaction * * @access public * @return bool */ function trans_commit() { 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_commit($this->conn_id); return $ret; }