Merge pull request #2571 from cuppett/patch-1

Must double quote the schema name in query
This commit is contained in:
Mark Story 2013-12-30 08:18:22 -08:00
commit 4ae1feaf2d

View file

@ -127,7 +127,7 @@ class Postgres extends DboSource {
$this->setEncoding($config['encoding']); $this->setEncoding($config['encoding']);
} }
if (!empty($config['schema'])) { if (!empty($config['schema'])) {
$this->_execute('SET search_path TO ' . $config['schema']); $this->_execute('SET search_path TO "' . $config['schema'] . '"');
} }
if (!empty($config['settings'])) { if (!empty($config['settings'])) {
foreach ($config['settings'] as $key => $value) { foreach ($config['settings'] as $key => $value) {