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:
parent
8d4100d32f
commit
4efbb76e83
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user