Skip to content
Browse files

Guard against exceptions in _describe_connection

  • Loading branch information...
1 parent ffaf1f8 commit 57596d95a893bc0a7eadf271bd16044bd78746d5 @ribasushi ribasushi committed Feb 28, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/DBIx/Class/Storage/DBI.pm
View
4 lib/DBIx/Class/Storage/DBI.pm
@@ -1181,7 +1181,9 @@ sub _describe_connection {
SQL_TXN_ISOLATION_OPTION
/
) {
- my $v = $self->_dbh_get_info($inf);
+ # some drivers barf on things they do not know about instead
+ # of returning undef
+ my $v = try { $self->_dbh_get_info($inf) };
next unless defined $v;
#my $key = sprintf( '%s(%s)', $inf, $DBI::Const::GetInfoType::GetInfoType{$inf} );

0 comments on commit 57596d9

Please sign in to comment.
Something went wrong with that request. Please try again.