value can be negative

This commit is contained in:
Dieter Adriaenssens
2010-09-11 11:02:14 +02:00
parent 194e357a99
commit f5879655d5

View File

@@ -744,7 +744,7 @@ function PMA_detectType($last_cumulative_type, &$cell) {
if ($cell == (string)(float)$cell && strpos($cell, ".") !== false && substr_count($cell, ".") == 1) { if ($cell == (string)(float)$cell && strpos($cell, ".") !== false && substr_count($cell, ".") == 1) {
return DECIMAL; return DECIMAL;
} else { } else {
if ($cell > 2147483647) { if (abs($cell) > 2147483647) {
return BIGINT; return BIGINT;
} else { } else {
return INT; return INT;