~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/group_min_max_innodb.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop view if exists v1;
 
2
drop table if exists t1,t4;
1
3
create table t4 (
2
4
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
3
5
) engine=innodb;
70
72
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
71
73
1       SIMPLE  t1      range   NULL    PRIMARY 5       NULL    3       Using index for group-by; Using temporary
72
74
drop table t1;
 
75
create table t1(pk int primary key) engine=innodb;
 
76
create view v1 as select pk from t1 where pk < 20;
 
77
insert into t1 values (1), (2), (3), (4);
 
78
select distinct pk from v1;
 
79
pk
 
80
1
 
81
2
 
82
3
 
83
4
 
84
insert into t1 values (5), (6), (7);
 
85
select distinct pk from v1;
 
86
pk
 
87
1
 
88
2
 
89
3
 
90
4
 
91
5
 
92
6
 
93
7
 
94
drop view v1;
 
95
drop table t1;
 
96
End of 5.1 tests