From f5879655d58812b978dc975e5dc8d8497d11a3c3 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Sat, 11 Sep 2010 11:02:14 +0200 Subject: [PATCH] value can be negative --- libraries/import.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 278028ba9..24b27db81 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -744,7 +744,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;