package SQL::Translator;
# ----------------------------------------------------------------------
-# $Id: Translator.pm,v 1.64 2005-04-13 20:34:20 allenday Exp $
+# $Id: Translator.pm,v 1.65 2005-05-13 07:35:58 allenday Exp $
# ----------------------------------------------------------------------
# Copyright (C) 2002-4 The SQLFairy Authors
#
require 5.004;
$VERSION = '0.07';
-$REVISION = sprintf "%d.%02d", q$Revision: 1.64 $ =~ /(\d+)\.(\d+)/;
+$REVISION = sprintf "%d.%02d", q$Revision: 1.65 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 0 unless defined $DEBUG;
$ERROR = "";
eval { require $file };
next if $@ =~ /Can't locate $file in \@INC/;
eval { $file->import(@_) } unless $@;
- return __PACKAGE__->error("Error loading $name as $module : $@") if $@;
+ return __PACKAGE__->error("Error loading $name as $module : $@") if $@ && $@ !~ /"SQL::Translator::Producer" is not exported/;
return $module; # Module loaded ok
}