Commit 725fd87d authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

An addition (see ChangeSet

1.2082 04/10/11 18:38:48 ram@gw.mysql.r18.ru +3 -0                            
A fix (bug #5615 type of aggregate function column wrong when using group by).)

Shouldn't it be 'int(11) not null' == the same as in the t1?
parent f317cafc
...@@ -250,9 +250,11 @@ type_bool type_tiny type_short type_mediumint type_bigint type_decimal type_nume ...@@ -250,9 +250,11 @@ type_bool type_tiny type_short type_mediumint type_bigint type_decimal type_nume
drop table t1; drop table t1;
create table t1 (a int not null); create table t1 (a int not null);
create table t2 select max(a) from t1; create table t2 select max(a) from t1;
Warnings:
Warning 1263 Data truncated; NULL supplied to NOT NULL column 'max(a)' at row 1
show columns from t2; show columns from t2;
Field Type Null Key Default Extra Field Type Null Key Default Extra
max(a) bigint(20) YES NULL max(a) int(11) 0
drop table t1,t2; drop table t1,t2;
create table t1 (c decimal, d double, f float, r real); create table t1 (c decimal, d double, f float, r real);
show columns from t1; show columns from t1;
......
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