~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/bench_count_distinct.result

  • Committer: Brian Aker
  • Date: 2008-07-14 03:04:13 UTC
  • mfrom: (77.1.90 codestyle)
  • Revision ID: brian@tangent.org-20080714030413-dpv6opb0eoy1rd3f
Merging Monty's code, I did remove error on compile though (since it does
not currently work because of sql_plugin.cc)

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)) delay_key_write = 1;
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    200     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;