Skip Menu |

This queue is for tickets about the DBIx-DBSchema CPAN distribution.

Report information
The Basics
Id: 17582
Status: resolved
Priority: 0/
Queue: DBIx-DBSchema

People
Owner: ivan-pause [...] 420.am
Requestors: bphillips [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.28
Fixed in: (no value)



Subject: DBIx::DBSchema::DBD::mysql column definitions
The software doesn't parse the column definition correctly. For instance, if the "Type" field contains the following: varchar(16) binary The length field is parsed as '16)' and the binary value isn't collected at all. The length but is fairly trivial to fix by changing the second capture group in the regex: $_->{'Type'} =~ /^(\w+)\(?([^)]+)?\)?( unsigned)?$/i ===========================^^^^^ The other issue is more difficult because it doesn't appear to support any extra data after the length and before the null/extra values.
From: ivan-pause [...] 420.am
fixed in CVS, will be in 0.33, thanks! On Fri Feb 10 16:09:17 2006, guest wrote: Show quoted text
> The software doesn't parse the column definition correctly. For > instance, if the "Type" field contains the following: > varchar(16) binary > > The length field is parsed as '16)' and the binary value isn't
collected Show quoted text
> at all. The length but is fairly trivial to fix by changing the
second Show quoted text
> capture group in the regex: > > $_->{'Type'} =~ /^(\w+)\(?([^)]+)?\)?( unsigned)?$/i > ===========================^^^^^ > > The other issue is more difficult because it doesn't appear to
support Show quoted text
> any extra data after the length and before the null/extra values.