~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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