From: Ken Youens-Clark Date: Tue, 11 Aug 2009 21:36:43 +0000 (+0000) Subject: Resolves RT#48025. X-Git-Tag: v0.11008~126 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c857e37ab2243bdc100b2a6dbee8d4069560149e;p=dbsrgits%2FSQL-Translator.git Resolves RT#48025. --- diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 8d434fc..5a32d01 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -554,7 +554,11 @@ sub create_field if ( lc($data_type) eq 'enum' || lc($data_type) eq 'set') { $field_def .= '(' . $commalist . ')'; } - elsif ( defined $size[0] && $size[0] > 0 && ! grep $data_type eq $_, @no_length_attr ) { + elsif ( + defined $size[0] && $size[0] > 0 + && + ! grep lc($data_type) eq $_, @no_length_attr + ) { $field_def .= '(' . join( ', ', @size ) . ')'; }