Fixing some potential problems with prefixes and object names.

This commit is contained in:
stronk7
2006-08-16 23:01:46 +00:00
parent d7444bfce3
commit ada5648103
4 changed files with 2 additions and 23 deletions

View File

@ -58,13 +58,6 @@ class XMLDBpostgres7 extends XMLDBgenerator {
$this->reserved_words = $this->getReservedWords();
}
/**
* Set the prefix
*/
function setPrefix($prefix) {
$this->prefix = $prefix;
}
/**
* Given one XMLDB Type, lenght and decimals, returns the DB proper SQL type
*/
@ -139,7 +132,7 @@ class XMLDBpostgres7 extends XMLDBgenerator {
*/
function getCommentSQL ($xmldb_table) {
$comment = ";\n\nCOMMENT ON TABLE " . $this->prefix . $this->getEncQuoted($xmldb_table->getName());
$comment = ";\n\nCOMMENT ON TABLE " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$comment.= " IS '" . substr($xmldb_table->getComment(), 0, 250) . "'";
return $comment;