ASA last_insert_id and limit support, still needs BLOB support
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI.pm
index e07f116..ccd1cf2 100644 (file)
@@ -2586,7 +2586,10 @@ sub DESTROY {
   # some databases need this to stop spewing warnings
   if (my $dbh = $self->_dbh) {
     local $@;
-    eval { $dbh->disconnect };
+    eval {
+      %{ $dbh->{CachedKids} } = ();
+      $dbh->disconnect;
+    };
   }
 
   $self->_dbh(undef);