From: lpsolit%gmail.com <> Date: Fri, 27 Jul 2007 17:04:41 +0000 (+0000) Subject: Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket ... X-Git-Tag: bugzilla-3.0.1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98f1c65fca1b6fb3ef7d9bbff970802813214ff3;p=thirdparty%2Fbugzilla.git Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket - Patch by Emmanuel Seyman r/a=mkanat --- diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index f6a520936c..9f5b677575 100644 --- a/Bugzilla/DB/Pg.pm +++ b/Bugzilla/DB/Pg.pm @@ -60,7 +60,8 @@ sub new { $dbname ||= 'template1'; # construct the DSN from the parameters we got - my $dsn = "DBI:Pg:host=$host;dbname=$dbname"; + my $dsn = "DBI:Pg:dbname=$dbname"; + $dsn .= ";host=$host" if $host; $dsn .= ";port=$port" if $port; # This stops Pg from printing out lots of "NOTICE" messages when