package SQL::Translator::Parser::MySQL;
# -------------------------------------------------------------------
-# $Id: MySQL.pm,v 1.33 2003-08-18 15:46:22 kycl4rk Exp $
+# $Id: MySQL.pm,v 1.34 2003-08-19 14:41:05 kycl4rk Exp $
# -------------------------------------------------------------------
# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>,
# darren chamberlain <darren@cpan.org>,
use strict;
use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.33 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.34 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 0 unless defined $DEBUG;
use Data::Dumper;
}
}
+ if ( lc $type eq 'tinytext' ) {
+ $size = [255];
+ }
+ elsif ( lc $type eq 'text' ) {
+ $size = [65_000];
+ }
+ elsif ( lc $type eq 'mediumtext' ) {
+ $size = [16_000_000];
+ }
+ elsif ( lc $type eq 'longtext' ) {
+ $size = [4_000_000_000];
+ }
+
$return = {
type => $type,
size => $size,