diff options
author | unknown <jani@ibmlab.site> | 2005-05-06 17:32:46 +0300 |
---|---|---|
committer | unknown <jani@ibmlab.site> | 2005-05-06 17:32:46 +0300 |
commit | 1586eea57340cd1a202845775f285ce6acdb9c08 (patch) | |
tree | 6ed46e7a9ace2a9d63de24f06f189db548444bad /mysql-test/t/select.test | |
parent | f1def25a89e3dc2ed191335e9d5f7843de245e0a (diff) | |
download | mariadb-git-1586eea57340cd1a202845775f285ce6acdb9c08.tar.gz |
Fixed bugs 9820, 9799 and 9800.
mysql-test/r/select.result:
Added test cases for bugs 9799, 9800 and 9820
mysql-test/t/select.test:
Added test cases for bugs 9799, 9800 and 9820
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r-- | mysql-test/t/select.test | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test index a92c8ffdc66..64f6674181c 100644 --- a/mysql-test/t/select.test +++ b/mysql-test/t/select.test @@ -2029,3 +2029,30 @@ select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1; select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1; select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1; drop table t1,t2; + +# +# Bug#9820 +# + +create table t1 (s1 varchar(5)); +insert into t1 values ('Wall'); +select min(s1) from t1 group by s1 with rollup; +drop table t1; + +# +# Bug#9799 +# + +create table t1 (s1 int) engine=myisam; +insert into t1 values (0); +select avg(distinct s1) from t1 group by s1 with rollup; +drop table t1; + +# +# Bug#9800 +# + +create table t1 (s1 int); +insert into t1 values (null),(1); +select distinct avg(s1) as x from t1 group by s1 with rollup; +drop table t1; |