Subject: | mysql enum column type |
Using the mysql driver, "enum" column types are not recognized and the module dies. A patch is included for the fix. Also, would also be nice if the module did not die on an unknown column type.
My environment:
Linux 2.4.18-3bigmem #1 SMP
perl, v5.8.6 built for i686-linux
DBIx::DBSchema::VERSION: 0.26
mysql Ver 14.7 Distrib 4.1.7, for pc-linux (i686)
Regards,
Andy Orr
--- mysql.pm.orig Thu Apr 14 17:18:38 2005
+++ mysql.pm Thu Apr 14 17:27:06 2005
@@ -38,5 +38,5 @@
$sth->execute or die $sth->errstr;
map {
- $_->{'Type'} =~ /^(\w+)\(?([\d\,]+)?\)?( unsigned)?$/
+ $_->{'Type'} =~ /^(\w+)\(?(['"\w\d\,]+)?\)?( unsigned)?$/
or die "Illegal type: ". $_->{'Type'}. "\n";
my($type, $length) = ($1, $2);