Extendig use of new getTableName() over all generators

This commit is contained in:
stronk7
2006-09-30 12:13:07 +00:00
parent 97b9178459
commit 9af19c728d
4 changed files with 12 additions and 12 deletions
@@ -124,7 +124,7 @@ class XMLDBpostgres7 extends XMLDBgenerator {
*/
function getCommentSQL ($xmldb_table) {
$comment = "COMMENT ON TABLE " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$comment = "COMMENT ON TABLE " . $this->getTableName($xmldb_table);
$comment.= " IS '" . substr($xmldb_table->getComment(), 0, 250) . "'";
return array($comment);
@@ -146,7 +146,7 @@ class XMLDBpostgres7 extends XMLDBgenerator {
$results = array(); /// To store all the needed SQL commands
/// Get the quoted name of the table and field
$tablename = $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$tablename = $this->getTableName($xmldb_table);
$fieldname = $this->getEncQuoted($xmldb_field->getName());
/// Take a look to field metadata