1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixed Bug#3645, "PROCEDURE ANALYSE() recommends illegal

FLOAT columns".
This commit is contained in:
unknown
2004-09-07 11:40:27 +03:00
parent 6f46f997b1
commit 2b464cae9b

View File

@@ -810,6 +810,13 @@ void field_real::get_opt_type(String *answer,
if (min_arg >= 0)
answer->append(" UNSIGNED");
}
else if (item->decimals == NOT_FIXED_DEC)
{
if (min_arg >= -FLT_MAX && max_arg <= FLT_MAX)
answer->append("FLOAT", 5);
else
answer->append("DOUBLE", 6);
}
else
{
if (min_arg >= -FLT_MAX && max_arg <= FLT_MAX)