From: Ken Youens-Clark Date: Sat, 3 May 2003 15:42:59 +0000 (+0000) Subject: Fixed error 'Use of uninitialized value in pattern match (m//) at blib/lib/SQL/Transl... X-Git-Tag: v0.02~147 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=faa50497661eabaa6c42c41190628b5f7e8988b7;p=dbsrgits%2FSQL-Translator.git Fixed error 'Use of uninitialized value in pattern match (m//) at blib/lib/SQL/Translator/Schema/Field.pm line 144.' --- diff --git a/lib/SQL/Translator/Schema/Field.pm b/lib/SQL/Translator/Schema/Field.pm index 00b03cc..06af839 100644 --- a/lib/SQL/Translator/Schema/Field.pm +++ b/lib/SQL/Translator/Schema/Field.pm @@ -1,7 +1,7 @@ package SQL::Translator::Schema::Field; # ---------------------------------------------------------------------- -# $Id: Field.pm,v 1.1 2003-05-01 04:25:00 kycl4rk Exp $ +# $Id: Field.pm,v 1.2 2003-05-03 15:42:59 kycl4rk Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -141,7 +141,7 @@ Get or set the field's size. my ( $self, $arg ) = @_; - if ( $arg =~ m/^\d+(?:\.\d+)?$/ ) { + if ( $arg && $arg =~ m/^\d+(?:\.\d+)?$/ ) { $self->{'size'} = $arg; }