~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_group.result

  • Committer: Stewart Smith
  • Date: 2010-12-02 04:36:22 UTC
  • mto: (2021.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1971.
  • Revision ID: stewart@flamingspork.com-20101202043622-vxiij48ug09z7h1u
EXPLAIN in test result changes due to modified InnoDB stats

Show diffs side-by-side

added added

removed removed

Lines of Context:
529
529
explain 
530
530
select min(a1) from t1 where a1 > 'KKK' or a1 < 'XXX';
531
531
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
532
 
1       SIMPLE  t1      range   PRIMARY PRIMARY 0       NULL    7       Using where; Using index
 
532
1       SIMPLE  t1      index   PRIMARY PRIMARY 14      NULL    15      Using where; Using index
533
533
explain 
534
534
select min(a1) from t1 where a1 != 'KKK';
535
535
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
578
578
explain
579
579
select concat(min(t1.a1),min(t2.a4)) from t1, t2 where t2.a4 <> 'AME';
580
580
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
581
 
1       SIMPLE  t2      index   k2      PRIMARY 14      NULL    7       Using where
 
581
1       SIMPLE  t2      range   k2      k2      15      NULL    6       Using where; Using index
582
582
1       SIMPLE  t1      index   NULL    PRIMARY 14      NULL    15      Using index; Using join buffer
583
583
drop table t1, t2;
584
584
create table t1 (a char);
1223
1223
INSERT INTO t2 ( a, b, c ) VALUES ( 1, NULL, 2 ), ( 1, 3, 4 ), ( 1, 4, 4 );
1224
1224
EXPLAIN SELECT MIN(b), MIN(c) FROM t2 WHERE a = 1;
1225
1225
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1226
 
1       SIMPLE  t2      ref     a       a       5       const   1       Using where
 
1226
1       SIMPLE  t2      ALL     a       NULL    NULL    NULL    3       Using where
1227
1227
SELECT MIN(b), MIN(c) FROM t2 WHERE a = 1;
1228
1228
MIN(b)  MIN(c)
1229
1229
3       2