From: Rafael Kitover Date: Wed, 3 Mar 2010 17:59:41 +0000 (+0000) Subject: destroy cached statements in $storage->disconnect too X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=77b34fb6d02923f5f5eaf8bcd6e74ff82ac54262;p=dbsrgits%2FDBIx-Class-Historic.git destroy cached statements in $storage->disconnect too --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index d526399..a51b278 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -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}++;