mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
just to check for GROUP by bug
This commit is contained in:
parent
715f23faab
commit
29e70bfbbf
1 changed files with 16 additions and 0 deletions
16
mysql-test/t/sel000004.test
Normal file
16
mysql-test/t/sel000004.test
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
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;
|
Loading…
Reference in a new issue