From: Steinar H. Gunderson Date: Mon, 7 Aug 2006 08:22:03 +0000 (+0200) Subject: Fix a typo that would kill reconnection. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=08c2d6184b4ad4c1fbe1e15b8e8563dfd3136f02;hp=5862afca102bc7ed2993602ae78b3a0331869ff4 Fix a typo that would kill reconnection. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index d7e673d..0b2fa24 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -145,7 +145,7 @@ sub get_dbh { # Try to reconnect Apache2::ServerUtil->server->log_error("Lost contact with PostgreSQL server, trying to reconnect..."); unless ($dbh = DBI->connect("dbi:Pg:dbname=pr0n;host=" . $Sesse::pr0n::Config::db_host, - $Sesse::pr0n::Config::db_user, $Sesse::pr0n::Config::db_password)) { + $Sesse::pr0n::Config::db_username, $Sesse::pr0n::Config::db_password)) { $dbh = undef; die "Couldn't connect to PostgreSQL database"; }