From: Ken Youens-Clark Date: Sun, 25 Jan 2004 18:11:42 +0000 (+0000) Subject: Null out size if a blob field. X-Git-Tag: v0.06~233 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=472b787ec2999a37080857bc0240ff2f79bc8cfd;p=dbsrgits%2FSQL-Translator.git Null out size if a blob field. --- diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 3f33406..1f110a2 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::MySQL; # ------------------------------------------------------------------- -# $Id: MySQL.pm,v 1.28 2003-10-15 18:55:11 kycl4rk Exp $ +# $Id: MySQL.pm,v 1.29 2004-01-25 18:11:42 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -46,7 +46,7 @@ for fields, etc.). use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.28 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.29 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -135,7 +135,7 @@ sub produce { $data_type = $translate{ $data_type }; } - @size = () if $data_type eq 'text'; + @size = () if $data_type =~ /(text|blob)/i; $field_def .= " $data_type";