protected function _alterTable($tblrs, $name, $owner, $schema, $comment, $tablespace)
{
$this->fieldArrayClean($tblrs->fields);
// Comment
$status = $this->setComment('TABLE', '', $tblrs->fields['relname'], $comment);
if ($status != 0) {
return -4;
}
// Owner
$this->fieldClean($owner);
$status = $this->alterTableOwner($tblrs, $owner);
if ($status != 0) {
return -5;
}
// Tablespace
$this->fieldClean($tablespace);
$status = $this->alterTableTablespace($tblrs, $tablespace);
if ($status != 0) {
return -6;
}
// Rename
$this->fieldClean($name);
$status = $this->alterTableName($tblrs, $name);
if ($status != 0) {
return -3;
}
// Schema
$this->fieldClean($schema);
$status = $this->alterTableSchema($tblrs, $schema);
if ($status != 0) {
return -7;
}
return 0;
}