diff options
author | unknown <kostja@oak.local> | 2003-08-06 16:58:03 +0400 |
---|---|---|
committer | unknown <kostja@oak.local> | 2003-08-06 16:58:03 +0400 |
commit | a8cb3628b7b37503fa02e9f3b091eff5a3c3c399 (patch) | |
tree | 97ce56c35330de689cc9dbeddc5acd8b494ad0c7 /mysql-test/r/count_distinct3.result | |
parent | b97d0ea2c3c2d325c56f01a8edf26e7944dea749 (diff) | |
download | mariadb-git-a8cb3628b7b37503fa02e9f3b091eff5a3c3c399.tar.gz |
fix for bug #958 and tests for it
aligned with Sergey notes.
sql/records.cc:
fix for bug #958 - big select with
count distinct and group by
aligned with Sergey notes.
Diffstat (limited to 'mysql-test/r/count_distinct3.result')
-rw-r--r-- | mysql-test/r/count_distinct3.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/count_distinct3.result b/mysql-test/r/count_distinct3.result new file mode 100644 index 00000000000..633bb2fa252 --- /dev/null +++ b/mysql-test/r/count_distinct3.result @@ -0,0 +1,7 @@ +DROP TABLE IF EXISTS t1, t2; +CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER); +SELECT COUNT(*) FROM t1; +COUNT(*) +4181000 +SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp; +DROP TABLE t1; |