mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #2571 from cuppett/patch-1
Must double quote the schema name in query
This commit is contained in:
commit
4ae1feaf2d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue