point is not decimal

prevent field type 'point' to  be taken as decimal   (poINT)
This commit is contained in:
Frantzcy
2016-11-28 12:26:46 -05:00
committed by GitHub
parent 31c0360089
commit 24119553a2

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;
}