1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Merge deer.(none):/home/hf/work/mysql-5.0.13667

into deer.(none):/home/hf/work/mysql-5.0.12267
This commit is contained in:
hf@deer.(none)
2005-10-25 21:09:37 +05:00
3 changed files with 9 additions and 1 deletions

View File

@@ -5791,7 +5791,7 @@ new_create_field(THD *thd, char *field_name, enum_field_types type,
case FIELD_TYPE_NULL:
break;
case FIELD_TYPE_NEWDECIMAL:
if (!length)
if (!length && !new_field->decimals)
new_field->length= 10;
if (new_field->length > DECIMAL_MAX_PRECISION)
{