~drizzle-trunk/drizzle/development

1 by brian
clean slate
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