$index = 'CREATE' . $unique . ' INDEX ';
$index .= $this->getNameForObject($xmldb_table->getName(), implode(', ', $xmldb_index->getFields()), $suffix);
- $index .= ' ON ' . $this->prefix . $this->getEncQuoted($xmldb_table->getName());
+ $index .= ' ON ' . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
$index .= ' (' . implode(', ', $this->getEncQuoted($xmldb_index->getFields())) . ');';
return $index;
$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
*/
$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
*/
$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
*/
*/
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;