From e0c1379218d6caaaed1d542dcf2422f93e4191bd Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 24 May 2002 18:34:34 +0300 Subject: Test re-grouping BitKeeper/deleted/.del-sel000004.test~21904fbd1c95cb1: Delete: mysql-test/t/sel000004.test BitKeeper/deleted/.del-sel000004.result~4b5fbc60d0d9754f: Delete: mysql-test/r/sel000004.result --- mysql-test/t/group_by.test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'mysql-test/t/group_by.test') diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 17ad9588f1b..171b5510227 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -283,3 +283,19 @@ SELECT 1 FROM t1 GROUP BY CONCAT(a, b); INSERT INTO t1 values ('hij','klm'); SELECT CONCAT(a, b),count(*) FROM t1 GROUP BY 1; DROP TABLE t1; +drop table if exists t1; +create table t1 (One int unsigned, Two int unsigned, Three int unsigned, Four int unsigned); +insert into t1 values (1,2,1,4); +insert into t1 values (1,2,2,4); +insert into t1 values (1,2,3,4); +insert into t1 values (1,2,4,4); +insert into t1 values (1,1,1,4); +insert into t1 values (1,1,2,4); +insert into t1 values (1,1,3,4); +insert into t1 values (1,1,4,4); +insert into t1 values (1,3,1,4); +insert into t1 values (1,3,2,4); +insert into t1 values (1,3,3,4); +insert into t1 values (1,3,4,4); +select One, Two, sum(Four) from t1 group by One,Two; +drop table if exists t1; -- cgit v1.2.1