mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
a8cb3628b7
aligned with Sergey notes. sql/records.cc: fix for bug #958 - big select with count distinct and group by aligned with Sergey notes.
7 lines
193 B
Text
7 lines
193 B
Text
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;
|