~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/group_min_max.result

  • Committer: Monty Taylor
  • Date: 2010-07-31 21:37:09 UTC
  • mto: (1680.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1681.
  • Revision ID: mordred@inaugust.com-20100731213709-p2tlj3txhwdi9339
Removed our unordered wrappers. We use Boost now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1611
1611
select distinct t1.a1,t2.a1 from t1,t2;
1612
1612
a1      a1
1613
1613
a       a
 
1614
b       a
 
1615
c       a
 
1616
d       a
1614
1617
a       b
 
1618
b       b
 
1619
c       b
 
1620
d       b
1615
1621
a       c
 
1622
b       c
 
1623
c       c
 
1624
d       c
1616
1625
a       d
 
1626
b       d
 
1627
c       d
 
1628
d       d
1617
1629
a       e
1618
 
b       a
1619
 
b       b
1620
 
b       c
1621
 
b       d
1622
1630
b       e
1623
 
c       a
1624
 
c       b
1625
 
c       c
1626
 
c       d
1627
1631
c       e
1628
 
d       a
1629
 
d       b
1630
 
d       c
1631
 
d       d
1632
1632
d       e
1633
1633
explain select distinct a1,a2,b from t1;
1634
1634
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1974
1974
BB
1975
1975
EXPLAIN SELECT a FROM t1 WHERE a='AA' GROUP BY a;
1976
1976
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1977
 
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   4       Using where; Using index
 
1977
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   2       Using where; Using index
1978
1978
EXPLAIN SELECT a FROM t1 WHERE a='BB' GROUP BY a;
1979
1979
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1980
1980
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   1       Using where; Using index
2120
2120
6       4
2121
2121
SHOW STATUS LIKE 'handler_read__e%';
2122
2122
Variable_name   Value
2123
 
Handler_read_key        23
 
2123
Handler_read_key        22
2124
2124
Handler_read_next       0
2125
2125
EXPLAIN (SELECT max(b), a FROM t1 GROUP BY a) UNION 
2126
2126
(SELECT max(b), a FROM t1 GROUP BY a);
2171
2171
INSERT INTO t3 SELECT a,MAX(b) FROM t1 GROUP BY a;
2172
2172
SHOW STATUS LIKE 'handler_read__e%';
2173
2173
Variable_name   Value
2174
 
Handler_read_key        12
 
2174
Handler_read_key        11
2175
2175
Handler_read_next       0
2176
2176
DELETE FROM t3;
2177
2177
FLUSH STATUS;