Bug 301676: [PostgreSQL] Bugzilla::DB::Pg does not support using a local socket - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat

git-svn-id: svn://10.0.0.236/trunk@231101 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com 2007-07-27 12:04:41 +00:00
parent 8d4100d32f
commit 4efbb76e83

View File

@ -60,7 +60,8 @@ sub new {
$dbname ||= 'template1'; $dbname ||= 'template1';
# construct the DSN from the parameters we got # 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; $dsn .= ";port=$port" if $port;
# This stops Pg from printing out lots of "NOTICE" messages when # This stops Pg from printing out lots of "NOTICE" messages when