~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/bench_count_distinct.test

  • Committer: Monty Taylor
  • Date: 2008-09-16 00:00:48 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916000048-3rvrv3gv9l0ad3gs
Fixed copyright headers in drizzled/

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));
9
 
let $1=100;
10
 
disable_query_log;
11
 
begin;
12
 
while ($1)
13
 
{
14
 
 eval insert into t1 values($1);
15
 
 eval insert into t1 values($1);
16
 
 dec $1;
17
 
}
18
 
commit;
19
 
enable_query_log;
20
 
select count(distinct n) from t1;
21
 
explain extended select count(distinct n) from t1;
22
 
drop table t1;
23
 
 
24
 
# End of 4.1 tests