diff options
author | unknown <serg@serg.mysql.com> | 2003-03-11 21:20:53 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-03-11 21:20:53 +0100 |
commit | 07bb46f1434d6cf2e0221146f79876f1f86c56c1 (patch) | |
tree | c76eced132524e977b9e4608a4e534482170b908 /mysql-test/t/group_by.test | |
parent | b8ab0ce91b326f536c364b3964ba9dfdfef51849 (diff) | |
download | mariadb-git-07bb46f1434d6cf2e0221146f79876f1f86c56c1.tar.gz |
fixed an obscure bug in group by + having + Item_ref::get_date
Diffstat (limited to 'mysql-test/t/group_by.test')
-rw-r--r-- | mysql-test/t/group_by.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 6e256d7896f..20e11713d31 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -346,3 +346,11 @@ select a, MAX(b), CONCAT_WS(MAX(b), '43', '4', '5') from t1 group by a; select a, MAX(b), ELT(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f') from t1 group by a; select a, MAX(b), MAKE_SET(MAX(b), 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h') from t1 group by a; drop table t1; + +# not purely group_by bug, but group_by is involved... + +create table t1 (a date default null, b date default null); +insert t1 values ('1999-10-01','2000-01-10'), ('1997-01-01','1998-10-01'); +select a,min(b) c,count(distinct rand()) from t1 group by a having c<a + interval 1 day; +drop table t1; + |