From 24119553a209f28b9c4e2f82bde052a2246f25f6 Mon Sep 17 00:00:00 2001 From: Frantzcy Date: Mon, 28 Nov 2016 12:26:46 -0500 Subject: [PATCH] point is not decimal prevent field type 'point' to be taken as decimal (poINT) --- bin/pt-table-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-table-sync b/bin/pt-table-sync index b56ee929..90157859 100755 --- a/bin/pt-table-sync +++ b/bin/pt-table-sync @@ -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; }