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
|
|
1117.1.1
by Brian Aker
Remove SQL level reference for DELAY (just now done correctly by default in |
8 |
create table t1(n int not null, key(n)); |
1
by brian
clean slate |
9 |
let $1=100; |
10 |
disable_query_log; |
|
910.4.13
by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker. |
11 |
begin; |
1
by brian
clean slate |
12 |
while ($1) |
13 |
{
|
|
14 |
eval insert into t1 values($1); |
|
15 |
eval insert into t1 values($1); |
|
16 |
dec $1; |
|
17 |
}
|
|
910.4.13
by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker. |
18 |
commit; |
1
by brian
clean slate |
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 |