Skip to content
Snippets Groups Projects
Commit 0104cd56 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-570]. Supporting postgres.

Leo submitted patch. We support pgsql as a way of defining the driver. This
is inline with us accepting sqlite as a valid synonym for DBD::SQLite.
parent a4ec9628
No related branches found
No related tags found
No related merge requests found
......@@ -291,8 +291,11 @@ sub connect {
my $dbparam = ($dbname) ? "database=${dbname};" : q{};
my $driver = $self->driver();
$driver = 'Pg' if($driver eq 'pgsql');
$dsn = sprintf( "DBI:%s:%shost=%s;port=%s",
$self->driver(), $dbparam,
$driver, $dbparam,
$self->host(), $self->port() );
if ( $self->{'disconnect_when_inactive'} ) {
......
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