Browse files

If we get no DBH from DBI->connect, don't try to use it.

Resolves #26.
  • Loading branch information...
1 parent 7e40e17 commit fe815770be6422271eb67d73db274fa6621567ef @theory committed Nov 2, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 Changes
  2. +1 −1 lib/DBIx/Connector.pm
View
2 Changes
@@ -2,6 +2,8 @@ Revision history for Perl extension DBIx::Connector.
0.53
- Fixed some documentation typos, thanks to Mike O'Regan (Issue #22).
+ - Fixed issue where an connection failure caused an unhelpful error
+ (Issue #26).
0.52 2012-05-29T18:32:42Z
- The DBI params are now encapsulated in a code reference, rather than
View
2 lib/DBIx/Connector.pm
@@ -31,7 +31,7 @@ sub _connect {
} else {
DBI->connect( @args );
}
- };
+ } or return;
# Modify default values.
$dbh->STORE(AutoInactiveDestroy => 1) if DBI->VERSION > 1.613 && (

0 comments on commit fe81577

Please sign in to comment.