From: Ross Smith II Date: Sat, 16 Aug 2003 20:10:39 +0000 (+0000) Subject: Stops Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/5.6.1... X-Git-Tag: v0.04~320 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d14fe688e28b8eb1af0c5fa5c805d685631589ac;p=dbsrgits%2FSQL-Translator.git Stops Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/5.6.1/SQL/Translator/Parser/MySQL.pm line 594 --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index 16604e5..c65424a 100644 --- a/lib/SQL/Translator/Parser/MySQL.pm +++ b/lib/SQL/Translator/Parser/MySQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Parser::MySQL; # ------------------------------------------------------------------- -# $Id: MySQL.pm,v 1.30 2003-08-16 13:20:06 rossta Exp $ +# $Id: MySQL.pm,v 1.31 2003-08-16 20:10:39 rossta Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -123,7 +123,7 @@ Here's the word from the MySQL site use strict; use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.30 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.31 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -589,7 +589,7 @@ sub parse { if ( $field->data_type =~ /(set|enum)/i && !$field->size ) { my %extra = $field->extra; - my $longest; + my $longest = 0; for my $len ( map { length } @{ $extra{'list'} || [] } ) { $longest = $len if $len > $longest; }