summaryrefslogtreecommitdiff
path: root/mysql-test/r/count_distinct2.result
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-03-15 03:46:19 +0300
committerunknown <konstantin@mysql.com>2005-03-15 03:46:19 +0300
commit897849e5d8802ebe6a42803cba72caa80cd23415 (patch)
tree7afe84de6147f4619865e4f759eb1d0ad2f376f8 /mysql-test/r/count_distinct2.result
parentce4f43cb860e71a3d5e48773e305ff8e5e130872 (diff)
downloadmariadb-git-897849e5d8802ebe6a42803cba72caa80cd23415.tar.gz
WL#926 "AVG(DISTINCT) and other distincts", part 2 (out of 3): clean up
Item_sum_count_distinct, and deploy Unique for use with COUNT(DISTINCT) if there is no blob column in the list of DISTINCT arguments. mysql-test/r/count_distinct2.result: Test results fixed. mysql-test/r/func_group.result: Updated. mysql-test/r/sum_distinct.result: Updated. mysql-test/t/func_group.test: Add a test for COUNT(DISTINCT) and true varchar and case-insensitive collation. The table in the test contains only two distinct values. mysql-test/t/sum_distinct.test: Since now we support INSERT INTO t1 (a) SELECT a+1 FROM t1, shorten the test. Add a nominal test for AVG(DISTINCT) sql/item_sum.cc: Implementation of cleaned up Item_sum_count_distinct. Fixed a bug with COUNT(DISTINCT) and new VARCHAR and collations. Fixed a bug wiht AVG(DISTINCT) and wrong number of output digits after decimal point. sql/item_sum.h: Cleanup for Item_sum_count_distinct. Now if the list of distinct arguments doesn't contain a blob column, we always use Unique and merge-sort to find distinct values. sql/sql_class.h: Added a short-cut to find number of elements in Unique if all elements fit into memory.
Diffstat (limited to 'mysql-test/r/count_distinct2.result')
-rw-r--r--mysql-test/r/count_distinct2.result2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/r/count_distinct2.result b/mysql-test/r/count_distinct2.result
index 131e3b325ec..b92665b5c56 100644
--- a/mysql-test/r/count_distinct2.result
+++ b/mysql-test/r/count_distinct2.result
@@ -116,7 +116,7 @@ count(distinct n)
5000
show status like 'Created_tmp_disk_tables';
Variable_name Value
-Created_tmp_disk_tables 1
+Created_tmp_disk_tables 0
drop table t1;
create table t1 (s text);
flush status;