[check_postgres] [commit] Ue self->{dbname} if available.

check_postgres at bucardo.org check_postgres at bucardo.org
Wed Apr 22 20:33:22 UTC 2009


Committed by Greg Sabino Mullane <greg at endpoint.com>

Ue self->{dbname} if available.

---
 t/CP_Testing.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/CP_Testing.pm b/t/CP_Testing.pm
index e387220..d617796 100644
--- a/t/CP_Testing.pm
+++ b/t/CP_Testing.pm
@@ -34,7 +34,7 @@ sub test_database_handle {
 
 	my $self = shift;
 	my $arg = shift || {};
-	$arg->{dbname} ||= 'postgres';
+	$arg->{dbname} ||= $self->{dbname} || 'postgres';
 
 	ref $arg eq 'HASH' or die qq{Must pass a hashref (or nothing) to test_database_handle\n};
 
-- 
1.6.0.5



More information about the Check_postgres mailing list