mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Bug#24907: unpredictable (display) precission, if input precission increases
post-merge fixes: some things work differently in 5.1 mysql-test/r/type_newdecimal.result: post-merge fix: 5.1 throws different warning here sql/sql_select.cc: post-merge fix: signature has changed in 5.1
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user