[evolvis-commits] r12562: Fix [#5544] perl with an external database
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 01:46:42 CET 2011
Author: mirabilos
Date: 2011-02-28 01:46:42 +0100 (Mon, 28 Feb 2011)
New Revision: 12562
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/utils/include.pl
Log:
Fix [#5544] perl with an external database
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/utils/include.pl
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/utils/include.pl 2011-02-28 00:46:38 UTC (rev 12561)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/utils/include.pl 2011-02-28 00:46:42 UTC (rev 12562)
@@ -34,7 +34,7 @@
sub db_connect ( ) {
&parse_local_inc;
- $dbh ||= DBI->connect("DBI:Pg:dbname=$sys_dbname","$sys_dbuser","$sys_dbpasswd") ;
+ $dbh ||= DBI->connect("DBI:Pg:dbname=$sys_dbname;host=$sys_dbhost","$sys_dbuser","$sys_dbpasswd") ;
if (! $dbh) {
die "Error while connecting to database: $!" ;
}
More information about the evolvis-commits
mailing list