function alterView($view, $name, $owner, $schema, $comment) { $data = $this->getView($view); if ($data->recordCount() != 1) { return -2; } $status = $this->beginTransaction(); if ($status != 0) { $this->rollbackTransaction(); return -1; } $status = $this->_alterView($data, $name, $owner, $schema, $comment); if ($status != 0) { $this->rollbackTransaction(); return $status; } return $this->endTransaction(); }