From: Darren Chamberlain Date: Fri, 3 Oct 2003 20:17:48 +0000 (+0000) Subject: Removed definedness check for file-based data, for the DBI-based parsers, which will... X-Git-Tag: v0.04~145 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b11c7cf75750389d0e22c9b70563b11dc45ba955;p=dbsrgits%2FSQL-Translator.git Removed definedness check for file-based data, for the DBI-based parsers, which will not pass a data or file element. --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index 07d7e5b..c1d1afc 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -1,7 +1,7 @@ package SQL::Translator; # ---------------------------------------------------------------------- -# $Id: Translator.pm,v 1.45 2003-10-03 20:09:37 dlc Exp $ +# $Id: Translator.pm,v 1.46 2003-10-03 20:17:48 dlc Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -29,7 +29,7 @@ use base 'Class::Base'; require 5.004; $VERSION = '0.03'; -$REVISION = sprintf "%d.%02d", q$Revision: 1.45 $ =~ /(\d+)\.(\d+)/; +$REVISION = sprintf "%d.%02d", q$Revision: 1.46 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; $ERROR = ""; @@ -528,9 +528,6 @@ sub translate { # Get the data. # ---------------------------------------------------------------- my $data = $self->data; - unless (ref($data) eq 'SCALAR' and length $$data) { - return $self->error("Empty data file!"); - } # ---------------------------------------------------------------- # Local reference to the parser subroutine