Need to call "load" as a class method rather than an object method.
Ken Youens-Clark [Fri, 7 Aug 2009 20:48:46 +0000 (20:48 +0000)]
lib/SQL/Translator/Parser/DBI.pm

index 521b0d2..1d0219d 100644 (file)
@@ -170,7 +170,7 @@ sub parse {
     my $pkg     = "SQL::Translator::Parser::DBI::$driver";
     my $sub     = $pkg.'::parse';
 
-    $tr->load( $pkg );
+    SQL::Translator::load( $pkg );
 
     eval {
         no strict 'refs';