diff options
author | unknown <serg@serg.mysql.com> | 2002-12-04 10:47:51 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-12-04 10:47:51 +0100 |
commit | 2d2e834ce1be474b3b09dd60a1c4a9f2f67fc6e0 (patch) | |
tree | 6bec22f7f3d10ffb5c5d3e5bb561e306fb7a0c01 /mysql-test | |
parent | 5a0f1c749ea4882530d82b2704431e335895b28b (diff) | |
download | mariadb-git-2d2e834ce1be474b3b09dd60a1c4a9f2f67fc6e0.tar.gz |
post-merge fix
myisam/mi_rnext_same.c:
cleanup
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/group_by.result | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/group_by.result b/mysql-test/r/group_by.result index 0e8c6520d5c..ddddb3fa07d 100644 --- a/mysql-test/r/group_by.result +++ b/mysql-test/r/group_by.result @@ -205,6 +205,14 @@ Documentation 0 Host communication 0 kkkkkkkkkkk lllllllllll 3 Test Procedures 0 +select value,description,COUNT(bug_id) from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA" group by value having COUNT(bug_id) IN (0,2); +value description COUNT(bug_id) +BBBBBBBBBBBBB - conversion 2 +BBBBBBBBBBBBB - eeeeeeeee 0 +BBBBBBBBBBBBB - generic 2 +Documentation 0 +Host communication 0 +Test Procedures 0 drop table t1,t2; create table t1 (foo int); insert into t1 values (1); @@ -232,6 +240,13 @@ userid count(*) 3 3 2 1 1 2 +select userid,count(*) from t1 group by userid desc having (count(*)+1) IN (4,3); +userid count(*) +3 3 +1 2 +select userid,count(*) from t1 group by userid desc having 3 IN (1,COUNT(*)); +userid count(*) +3 3 explain select spid,count(*) from t1 where spid between 1 and 2 group by spid desc; table type possible_keys key key_len ref rows Extra t1 range spID spID 5 NULL 2 Using where; Using index |