use vars qw($VERSION @ISA %typemap);
use DBIx::DBSchema::DBD;
-$VERSION = '0.04';
+$VERSION = '0.05';
@ISA = qw(DBIx::DBSchema::DBD);
%typemap = (
my $sth = $dbh->prepare("SHOW COLUMNS FROM $table") or die $dbh->errstr;
$sth->execute or die $sth->errstr;
map {
- $_->{'Type'} =~ /^(\w+)\(?(.+)?\)?( unsigned)?$/
+ $_->{'Type'} =~ /^(\w+)\(?([^)]+)?\)?( unsigned)?$/
or die "Illegal type: ". $_->{'Type'}. "\n";
my($type, $length) = ($1, $2);
[