* @return bool success
* @throws dml_exception if error
*/
- /// TODO: Decide if this method should go to DDL instead of being here
public function create_database($dbhost, $dbuser, $dbpass, $dbname, array $dboptions=null) {
$driverstatus = $this->driver_installed();
* @return string
*/
public function get_name() {
- return get_string('nativepgsql', 'install'); // TODO: localise
+ return get_string('nativepgsql', 'install');
}
/**
* @return string
*/
public function get_configuration_hints() {
- return get_string('databasesettingssub_postgres7', 'install'); // TODO: improve
+ return get_string('databasesettingssub_postgres7', 'install');
}
/**
$matches = null;
if ($rawcolumn->type === 'varchar') {
- //TODO add some basic enum support here
$info->type = 'varchar';
$info->meta_type = 'C';
$info->max_length = $rawcolumn->atttypmod - 4;
}
public function get_session_lock($rowid) {
- // TODO: there is a potential locking problem for database running
+ // NOTE: there is a potential locking problem for database running
// multiple instances of moodle, we could try to use pg_advisory_lock(int, int),
// luckily there is not a big chance that they would collide
if (!$this->session_lock_supported()) {