MDL-37420 rework pg schema (partial backport of 92b00c3)

This commit is contained in:
Eloy Lafuente (stronk7)
2013-01-11 10:34:34 +01:00
parent 52f9e3ee56
commit d90030f1c7
+1 -1
View File
@@ -176,7 +176,7 @@ class pgsql_native_moodle_database extends moodle_database {
$sql = '';
// Select schema if specified, otherwise the first one wins.
if (isset($this->dboptions['dbschema'])) {
if (!empty($this->dboptions['dbschema'])) {
$sql .= "SET search_path = '".$this->dboptions['dbschema']."'; ";
}