Commit 03d22362 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #978 from racklin/pgsql-schema

Added support PostgreSQL schema.
parents ec418362 54f4cb26
......@@ -85,6 +85,7 @@ return array(
'password' => '',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
),
'sqlsrv' => array(
......
......@@ -44,6 +44,13 @@ class Postgres extends Connector {
$connection->prepare("SET NAMES '{$config['charset']}'")->execute();
}
// If a schema has been specified, we'll execute a query against
// the database to set the search path.
if (isset($config['schema']))
{
$connection->prepare("SET search_path TO '{$config['schema']}'")->execute();
}
return $connection;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment