1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed bug 10465.

This commit is contained in:
jani@a193-229-222-105.elisa-laajakaista.fi
2005-05-12 17:37:38 +03:00
parent e4d1964851
commit 187ee4712b
3 changed files with 25 additions and 1 deletions

View File

@ -8060,7 +8060,12 @@ void create_field::create_length_to_internal_length(void)
}
break;
case MYSQL_TYPE_NEWDECIMAL:
key_length= pack_length= my_decimal_get_binary_size(length, decimals);
key_length= pack_length=
my_decimal_get_binary_size(my_decimal_length_to_precision(length,
decimals,
flags &
UNSIGNED_FLAG),
decimals);
break;
default:
key_length= pack_length= calc_pack_length(sql_type, length);