Allow multiple schemas in pgsql.
This commit is contained in:
parent
c65f284c25
commit
7b846be4c4
|
@ -48,7 +48,7 @@ public function connect($config)
|
||||||
// the database to set the search path.
|
// the database to set the search path.
|
||||||
if (isset($config['schema']))
|
if (isset($config['schema']))
|
||||||
{
|
{
|
||||||
$connection->prepare("SET search_path TO '{$config['schema']}'")->execute();
|
$connection->prepare("SET search_path TO {$config['schema']}")->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $connection;
|
return $connection;
|
||||||
|
|
Loading…
Reference in New Issue