Skip to content

Commit

Permalink
Merge pull request #2571 from cuppett/patch-1
Browse files Browse the repository at this point in the history
Must double quote the schema name in query
  • Loading branch information
markstory committed Dec 30, 2013
2 parents f37eb9a + ed749fd commit 4ae1fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Postgres.php
Expand Up @@ -127,7 +127,7 @@ public function connect() {
$this->setEncoding($config['encoding']);
}
if (!empty($config['schema'])) {
$this->_execute('SET search_path TO ' . $config['schema']);
$this->_execute('SET search_path TO "' . $config['schema'] . '"');
}
if (!empty($config['settings'])) {
foreach ($config['settings'] as $key => $value) {
Expand Down

0 comments on commit 4ae1fea

Please sign in to comment.