diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index a71eeba28..9d299a133 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -127,7 +127,7 @@ class Postgres extends DboSource { $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) {