Fix a typo that would kill reconnection.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 7 Aug 2006 08:22:03 +0000 (10:22 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 7 Aug 2006 08:22:03 +0000 (10:22 +0200)
perl/Sesse/pr0n/Common.pm

index d7e673dc98a0fe03b86d4c131ca9f820c4bb6e33..0b2fa2488f1df4e7e3e463e015d6db0a13a4663e 100644 (file)
@@ -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";
                }