diff options
author | unknown <sergefp@mysql.com> | 2004-12-11 20:13:43 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2004-12-11 20:13:43 +0300 |
commit | 35217aeade288b054c95d4b5bd4dfb9674e2af08 (patch) | |
tree | cebbe4c727bfe42136318a07d8a738819fb140fb /mysql-test/t/group_by.test | |
parent | 0a3590f6d08342512deecfe15e91424eb01c0be4 (diff) | |
parent | b18e8c92bc12b21026882e157f5c31a8c2fb4408 (diff) | |
download | mariadb-git-35217aeade288b054c95d4b5bd4dfb9674e2af08.tar.gz |
Merge fix for BUG#6976 from 4.0
Diffstat (limited to 'mysql-test/t/group_by.test')
-rw-r--r-- | mysql-test/t/group_by.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 59983594c32..c0447b06303 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -465,3 +465,12 @@ select group_concat( distinct col1 ) as alias from t1 drop table t1; + +#Test for BUG#6976: Aggregate functions have incorrect NULL-ness +create table t1 (a int); +insert into t1 values(null); +select min(a) is null from t1; +select min(a) is null or null from t1; +select 1 and min(a) is null from t1; +drop table t1; + |