~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to plugin/haildb/test-suite-dir/haildb/tests/r/bench_count_distinct.result

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
create table t1(n int not null, key(n));
3
 
select count(distinct n) from t1;
4
 
count(distinct n)
5
 
100
6
 
explain extended select count(distinct n) from t1;
7
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
8
 
1       SIMPLE  t1      index   NULL    n       4       NULL    #       100.00  Using index
9
 
Warnings:
10
 
Note    1003    select count(distinct `test`.`t1`.`n`) AS `count(distinct n)` from `test`.`t1`
11
 
drop table t1;