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:

parent
e4d1964851
commit
187ee4712b
@ -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);
|
||||
|
Reference in New Issue
Block a user