~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/bench_count_distinct.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

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