Bug#24907: unpredictable (display) precission, if input precission increases

post-merge fixes: some things work differently in 5.1
parent 18fc7357
......@@ -1521,7 +1521,7 @@ f1
DROP TABLE t1;
CREATE TABLE t1 SELECT 123451234512345123451234512345123451234512345.678906789067890678906789067890678906789067890 AS f1;
Warnings:
Warning 1264 Out of range value adjusted for column 'f1' at row 1
Warning 1264 Out of range value for column 'f1' at row 1
DESC t1;
Field Type Null Key Default Extra
f1 decimal(59,30) NO 0.000000000000000000000000000000
......
......@@ -9219,7 +9219,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table,
}
new_field= new Field_new_decimal(len, maybe_null, item->name,
table, dec, item->unsigned_flag);
dec, item->unsigned_flag);
break;
}
case ROW_RESULT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment