Merge pull request #151 from frantzcy/patch-1

point is not decimal
This commit is contained in:
Carlos Salguero
2017-06-02 15:08:41 +02:00
committed by GitHub

View File

@@ -2866,7 +2866,7 @@ sub parse {
my ( $type ) = $def =~ m/`[^`]+`\s([a-z]+)/;
die "Can't determine column type for $def" unless $type;
$type_for{$col} = $type;
if ( $type =~ m/(?:(?:tiny|big|medium|small)?int|float|double|decimal|year)/ ) {
if ( $type =~ m/(?:(?:tiny|big|medium|small)?\bint|float|double|decimal|year)/ ) {
push @nums, $col;
$is_numeric{$col} = 1;
}