From 4efbb76e83ec7281be09f3669b39ecf24a25d6df Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Fri, 27 Jul 2007 12: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 git-svn-id: svn://10.0.0.236/trunk@231101 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm index f6a520936c6..9f5b677575f 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm +++ b/mozilla/webtools/bugzilla/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