summaryrefslogtreecommitdiff
path: root/mysql-test/t/count_distinct.test
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-02-10 18:01:29 +0200
committermonty@mashka.mysql.fi <>2003-02-10 18:01:29 +0200
commit15aee374560aa905995b1c5af8ac91bc2c0638c2 (patch)
treed977a5ffe2470f063019a9956fa890fab52c2899 /mysql-test/t/count_distinct.test
parent48558055edeb386ff6fb52c79763023b686fc86a (diff)
parentfbc9cd7ee8c564a819e8c0ed14b83146ea293ec3 (diff)
downloadmariadb-git-15aee374560aa905995b1c5af8ac91bc2c0638c2.tar.gz
merge
Diffstat (limited to 'mysql-test/t/count_distinct.test')
-rw-r--r--mysql-test/t/count_distinct.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/count_distinct.test b/mysql-test/t/count_distinct.test
index 239edea2422..1f0404876cb 100644
--- a/mysql-test/t/count_distinct.test
+++ b/mysql-test/t/count_distinct.test
@@ -46,3 +46,12 @@ insert into t1 values (1);
create table t2 (f1 int,f2 int);
select t1.f1,count(distinct t2.f2),count(distinct 1,NULL) from t1 left join t2 on t1.f1=t2.f1 group by t1.f1;
drop table t1,t2;
+
+
+#
+# Empty tables
+#
+create table t1 (f int);
+select count(distinct f) from t1;
+drop table t1;
+