Commit 23bdbd08 authored by Taylor Otwell's avatar Taylor Otwell

Tweak postgres connector.

parent f9488013
......@@ -24,7 +24,9 @@ class Postgres extends Connector {
{
extract($config);
$dsn = "pgsql:host={$host};dbname={$database}";
$host_dsn = isset($host) ? 'host='.$host.';' : '';
$dsn = "pgsql:{$host_dsn}dbname={$database}";
// The developer has the freedom of specifying a port for the PostgresSQL
// database or the default port (5432) will be used by PDO to create the
......
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