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

This commit is contained in:
Eloy Lafuente (stronk7)
2013-01-11 10:33:33 +01:00
parent 43bfcff941
commit 9b7b6fa33c
2 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class pgsql_native_moodle_database extends moodle_database {
}
// 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']."'; ";
}