Commit 8dfc841c authored by unknown's avatar unknown

Merging


mysql-test/r/func_gconcat.result:
  merging
mysql-test/r/type_float.result:
  merging
parent 56d6fdbd
...@@ -131,9 +131,9 @@ grp group_concat(a separator "")+0 ...@@ -131,9 +131,9 @@ grp group_concat(a separator "")+0
3 456789 3 456789
select grp, group_concat(a separator "")+0.0 from t1 group by grp; select grp, group_concat(a separator "")+0.0 from t1 group by grp;
grp group_concat(a separator "")+0.0 grp group_concat(a separator "")+0.0
1 1 1 1.0
2 23 2 23.0
3 456789 3 456789.0
select grp, ROUND(group_concat(a separator "")) from t1 group by grp; select grp, ROUND(group_concat(a separator "")) from t1 group by grp;
grp ROUND(group_concat(a separator "")) grp ROUND(group_concat(a separator ""))
1 1 1 1
......
...@@ -245,22 +245,22 @@ show warnings; ...@@ -245,22 +245,22 @@ show warnings;
Level Code Message Level Code Message
desc t1; desc t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
x double 0 x decimal(21,2) unsigned NO 0.00
drop table t1; drop table t1;
create table t1 select 0.0 x; create table t1 select 0.0 x;
desc t1; desc t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
x double(3,1) 0.0 x decimal(2,1) unsigned NO 0.0
create table t2 select 105213674794682365.00 y; create table t2 select 105213674794682365.00 y;
desc t2; desc t2;
Field Type Null Key Default Extra Field Type Null Key Default Extra
y double(21,2) 0.00 y decimal(20,2) unsigned NO 0.00
create table t3 select x+y a from t1,t2; create table t3 select x+y a from t1,t2;
show warnings; show warnings;
Level Code Message Level Code Message
desc t3; desc t3;
Field Type Null Key Default Extra Field Type Null Key Default Extra
a double 0 a decimal(21,2) unsigned NO 0.00
drop table t1,t2,t3; drop table t1,t2,t3;
create table t1 (s1 float(0,2)); create table t1 (s1 float(0,2));
ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 's1'). ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 's1').
......
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