From: Ken Youens-Clark Date: Fri, 7 Aug 2009 20:48:46 +0000 (+0000) Subject: Need to call "load" as a class method rather than an object method. X-Git-Tag: v0.11008~139 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c5e9acd371b9207f50481e82171176ead717fd11;p=dbsrgits%2FSQL-Translator.git Need to call "load" as a class method rather than an object method. --- diff --git a/lib/SQL/Translator/Parser/DBI.pm b/lib/SQL/Translator/Parser/DBI.pm index 521b0d2..1d0219d 100644 --- a/lib/SQL/Translator/Parser/DBI.pm +++ b/lib/SQL/Translator/Parser/DBI.pm @@ -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';