From 98f1c65fca1b6fb3ef7d9bbff970802813214ff3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 27 Jul 2007 17:04:41 +0000 Subject: [PATCH] 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(-) 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 -- 2.47.3