destroy cached statements in $storage->disconnect too
Rafael Kitover [Wed, 3 Mar 2010 17:59:41 +0000 (17:59 +0000)]
lib/DBIx/Class/Storage/DBI.pm

index d526399..a51b278 100644 (file)
@@ -742,6 +742,7 @@ sub disconnect {
 
     $self->_dbh_rollback unless $self->_dbh_autocommit;
 
+    %{ $self->_dbh->{CachedKids} } = ();
     $self->_dbh->disconnect;
     $self->_dbh(undef);
     $self->{_dbh_gen}++;