From 45a30629a2e0ebc56340a1119f56df13e475d14a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 27 Jul 2007 17:02:20 +0000 Subject: Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket - Patch by Emmanuel Seyman r/a=mkanat --- Bugzilla/DB/Pg.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index f6a520936..9f5b67757 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 -- cgit v1.2.3-24-g4f1b