Update TableParser module in all tools.

This commit is contained in:
Daniel Nichter
2015-06-25 13:21:12 -07:00
parent 32dba7e7f2
commit ef75630344
11 changed files with 44 additions and 9 deletions

View File

@@ -356,6 +356,9 @@ sub parse {
my (%type_for, %is_nullable, %is_numeric, %is_autoinc);
foreach my $col ( @cols ) {
my $def = $def_for{$col};
$def =~ s/``//g;
my ( $type ) = $def =~ m/`[^`]+`\s([a-z]+)/;
die "Can't determine column type for $def" unless $type;
$type_for{$col} = $type;