Revision history for Perl extension DBIx::DBSchema.
+0.27 unreleased
+ - MySQL patch for enum types from Andy Orr <aorr76@gmail.com>
+
0.26 Thu Apr 7 01:09:53 PDT 2005
- ask for "public" db schema only from Pg
use vars qw($VERSION @ISA %typemap);
use DBIx::DBSchema::DBD;
-$VERSION = '0.03';
+$VERSION = '0.04';
@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+)\(?([\d\,]+)?\)?( unsigned)?$/
+ $_->{'Type'} =~ /^(\w+)\(?(.+)?\)?( unsigned)?$/
or die "Illegal type: ". $_->{'Type'}. "\n";
my($type, $length) = ($1, $2);
[