diff --git a/libraries/import.lib.php b/libraries/import.lib.php index bacc6a4a0..98221def8 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -739,7 +739,7 @@ function PMA_detectType($last_cumulative_type, &$cell) { if ($cell == (string)(float)$cell && strpos($cell, ".") !== false && substr_count($cell, ".") == 1) { return DECIMAL; } else { - if ($cell > 2147483647) { + if (abs($cell) > 2147483647) { return BIGINT; } else { return INT;