summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-04-26 13:56:32 +0300
committerunknown <monty@hundin.mysql.fi>2002-04-26 13:56:32 +0300
commitc3703e5568c76669c8277e98206a00e6f652b5fd (patch)
tree2122e392524f450ec029fd33faf5e3b34c9c9b6b /sql
parent8c0e447729ec268b2e8bc11a3c8770fedd870004 (diff)
downloadmariadb-git-c3703e5568c76669c8277e98206a00e6f652b5fd.tar.gz
Don't change FLOAT(X+1,X) to FLOAT(X+2,X)
Docs/manual.texi: ChangeLog mysql-test/r/show_check.result: Updated test for SHOW COLUMNS mysql-test/t/show_check.test: Updated test for SHOW COLUMNS
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 4f9140cc3f2..06a121ea30c 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -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: