mirror of
https://github.com/moodle/moodle.git
synced 2025-07-16 11:56:31 +02:00
Fixing some potential problems with prefixes and object names.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user