1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Don't change FLOAT(X+1,X) to FLOAT(X+2,X)

This commit is contained in:
monty@hundin.mysql.fi
2002-04-26 13:56:32 +03:00
parent 6423437304
commit 0b6a786540
4 changed files with 37 additions and 3 deletions

View File

@@ -2432,9 +2432,9 @@ bool add_field_to_list(char *field_name, enum_field_types type,
uint sign_len=type_modifier & UNSIGNED_FLAG ? 0 : 1;
if (new_field->length && new_field->decimals &&
new_field->length < new_field->decimals+2 &&
new_field->length < new_field->decimals+1 &&
new_field->decimals != NOT_FIXED_DEC)
new_field->length=new_field->decimals+2; /* purecov: inspected */
new_field->length=new_field->decimals+1; /* purecov: inspected */
switch (type) {
case FIELD_TYPE_TINY: