diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2003-07-09 22:33:26 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2003-07-09 22:33:26 +0300 |
commit | 628b5c39f8f05c36d5bdabc092e66723853e2070 (patch) | |
tree | 699a2c0fb15472ee1f20521c1f61b1f0c12d44f9 /mysql-test/t/group_by.test | |
parent | 9e386beadb2372ccef25827b582e4aabe5142670 (diff) | |
download | mariadb-git-628b5c39f8f05c36d5bdabc092e66723853e2070.tar.gz |
Test case for bug #807
Diffstat (limited to 'mysql-test/t/group_by.test')
-rw-r--r-- | mysql-test/t/group_by.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 67f4eb580a6..df99bc2a9dc 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -420,4 +420,6 @@ select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sum(q select id, sum(qty) as sqty from t1 group by id having sqty>2 and count(qty)>1; select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sqty>2 and cqty>1; select id, sum(qty) as sqty, count(qty) as cqty from t1 group by id having sum(qty)>2 and count(qty)>1; +select count(*), case interval(qty,2,3,4,5,6,7,8) when -1 then NULL when 0 then "zero" when 1 then "one" when 2 then "two" end as category from t1 group by category; +select count(*), interval(qty,2,3,4,5,6,7,8) as category from t1 group by category; drop table t1; |