~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to plugin/haildb/test-suite-dir/haildb/tests/t/bench_count_distinct.test

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

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
 
--replace_column 9 #
22
 
explain extended select count(distinct n) from t1;
23
 
drop table t1;
24
 
 
25
 
# End of 4.1 tests