fix breakage on perl 5.8.x related to unloading temporary classes
Rafael Kitover [Tue, 25 Jan 2011 17:47:38 +0000 (12:47 -0500)]
Changes
lib/DBIx/Class/Schema/Loader/Base.pm

diff --git a/Changes b/Changes
index a752d7e..1e210ce 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Revision history for Perl extension DBIx::Class::Schema::Loader
 
+        - fix breakage on perl 5.8.x related to unloading temporary classes
+
 0.07004  2011-01-24 03:43:05
         - fix bug with result class methods being cached on in a closure instead
           of the object, which breaks for multiple dynamic schemas in a single
index e962237..ad3405b 100644 (file)
@@ -1069,7 +1069,7 @@ sub _load_tables {
         local $self->{dump_directory} = $self->{temp_directory};
         $self->_reload_classes(\@tables);
         $self->_load_relationships($_) for @tables;
-        $self->_relbuilder->cleanup;
+#        $self->_relbuilder->cleanup; # this breaks perl 5.8.x
         $self->{quiet} = 0;
 
         # Remove that temp dir from INC so it doesn't get reloaded