Now all the XMLDBxxx->geSQL functions return an array of statements to be

executed (easily to handle them in the installation/upgrade process
individually. Also, it's possible to specify one statement end.
This commit is contained in:
stronk7
2006-08-17 19:20:45 +00:00
parent de16da7293
commit 9dcc6300a7
7 changed files with 77 additions and 38 deletions
@@ -128,14 +128,14 @@ class XMLDBpostgres7 extends XMLDBgenerator {
}
/**
* Returns the code needed to add one comment to the table
* Returns the code (in array) needed to add one comment to the table
*/
function getCommentSQL ($xmldb_table) {
$comment = ";\n\nCOMMENT ON TABLE " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$comment = "COMMENT ON TABLE " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$comment.= " IS '" . substr($xmldb_table->getComment(), 0, 250) . "'";
return $comment;
return array($comment);
}
/**