Permalink
Browse files

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

  • Loading branch information...
1 parent 52f9e3e commit d90030f1c7e40c0d018e8f76afa052446312d3dd @stronk7 stronk7 committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dml/pgsql_native_moodle_database.php
View
2 lib/dml/pgsql_native_moodle_database.php
@@ -176,7 +176,7 @@ public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dbop
$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']."'; ";
}

0 comments on commit d90030f

Please sign in to comment.