summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-27 19:02:20 +0200
committerlpsolit%gmail.com <>2007-07-27 19:02:20 +0200
commit45a30629a2e0ebc56340a1119f56df13e475d14a (patch)
tree91f259ea9077586892ad17c5818b98d785c5b81e /Bugzilla/DB
parentf4c86834b97ded9419be20a5bb4ee1e7b117a2de (diff)
downloadbugzilla-45a30629a2e0ebc56340a1119f56df13e475d14a.tar.gz
bugzilla-45a30629a2e0ebc56340a1119f56df13e475d14a.tar.xz
Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Pg.pm3
1 files changed, 2 insertions, 1 deletions
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