~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/bench_count_distinct.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test of count(distinct ..)
 
3
#
 
4
 
 
5
--disable_warnings
 
6
drop table if exists t1;
 
7
--enable_warnings
 
8
create table t1(n int not null, key(n)) delay_key_write = 1;
 
9
let $1=100;
 
10
disable_query_log;
 
11
while ($1)
 
12
{
 
13
 eval insert into t1 values($1);
 
14
 eval insert into t1 values($1);
 
15
 dec $1;
 
16
}
 
17
enable_query_log;
 
18
select count(distinct n) from t1;
 
19
explain extended select count(distinct n) from t1;
 
20
drop table t1;
 
21
 
 
22
# End of 4.1 tests