summaryrefslogtreecommitdiff
path: root/mysql-test/t/having.test
blob: a952f5e8d5ccde9d1ab80e154bd4c38e9f586742 (plain)
1
2
3
4
5
6
7
8
9
10
# test of problems with having (Reported by Mark Rogers)
#

drop table if exists t1; 
create table t1 (a int);
select count(a) as b from t1 where a=0 having b > 0;
insert into t1 values (null);
select count(a) as b from t1 where a=0 having b > 0;
select count(a) as b from t1 where a=0 having b >=0;
drop table t1;