]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket ...
authorlpsolit%gmail.com <>
Fri, 27 Jul 2007 17:04:41 +0000 (17:04 +0000)
committerlpsolit%gmail.com <>
Fri, 27 Jul 2007 17:04:41 +0000 (17:04 +0000)
Bugzilla/DB/Pg.pm

index f6a520936c6dc2c4b1a7838373e1e24fd65b79cc..9f5b677575fe59a7bcbe142628b2efaafceb77f9 100644 (file)
@@ -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