Commit e473ffaa authored by unknown's avatar unknown

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
parent 53a80b2c
...@@ -1521,7 +1521,7 @@ f1 ...@@ -1521,7 +1521,7 @@ f1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 SELECT 123451234512345123451234512345123451234512345.678906789067890678906789067890678906789067890 AS f1; CREATE TABLE t1 SELECT 123451234512345123451234512345123451234512345.678906789067890678906789067890678906789067890 AS f1;
Warnings: 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; DESC t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
f1 decimal(59,30) NO 0.000000000000000000000000000000 f1 decimal(59,30) NO 0.000000000000000000000000000000
......
...@@ -9219,7 +9219,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table, ...@@ -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, new_field= new Field_new_decimal(len, maybe_null, item->name,
table, dec, item->unsigned_flag); dec, item->unsigned_flag);
break; break;
} }
case ROW_RESULT: 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