value can be negative
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user