From: Peter Rabbitson Date: Fri, 27 Apr 2012 14:48:53 +0000 (+0200) Subject: Incomplete revert in 0eb3b94a5 X-Git-Tag: v0.11011~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2ab5843a5a899603c0e010b67fbcd3d0fb90bfe;p=dbsrgits%2FSQL-Translator.git Incomplete revert in 0eb3b94a5 --- diff --git a/Makefile.PL b/Makefile.PL index 9ff18bb..924277b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,7 +9,6 @@ my $deps = { requires => { 'Class::Base' => '0', 'Class::Data::Inheritable' => '0.02', - 'Class::Unload' => '0.07', 'Digest::SHA' => '0', 'Carp::Clan' => '0', 'IO::Dir' => '0', diff --git a/lib/SQL/Translator/Utils.pm b/lib/SQL/Translator/Utils.pm index 25f4dc4..abbd28d 100644 --- a/lib/SQL/Translator/Utils.pm +++ b/lib/SQL/Translator/Utils.pm @@ -4,7 +4,6 @@ use strict; use warnings; use Digest::SHA qw( sha1_hex ); use File::Spec; -use Class::Unload; our $VERSION = '1.59'; our $DEFAULT_COMMENT = '-- '; @@ -237,6 +236,7 @@ sub ddl_parser_instance { # instance shares global state with all its siblings # What we do here is gross, but scarily efficient - the parser compilation # is much much slower than an unload/reload cycle + require Class::Unload; Class::Unload->unload($precompiled_mod); # There is also a sub-namespace that P::RD uses, but simply unsetting