diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2004-09-18 13:06:44 +0400 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2004-09-18 13:06:44 +0400 |
commit | d7281b331a79d1e2e3f026bbf71660006ee6df0b (patch) | |
tree | 93fd06c086dffc2635a6570d6c71cc5bb22174c9 /mysql-test/t/func_if.test | |
parent | e84eb55a0778ca62490c79136b9a09379b02773a (diff) | |
download | mariadb-git-d7281b331a79d1e2e3f026bbf71660006ee6df0b.tar.gz |
Fix for bug #5595: NULLIF() IS NULL returns false if NULLIF() returns NULL
Diffstat (limited to 'mysql-test/t/func_if.test')
-rw-r--r-- | mysql-test/t/func_if.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/func_if.test b/mysql-test/t/func_if.test index 5e605dbe97b..f78cb5ade55 100644 --- a/mysql-test/t/func_if.test +++ b/mysql-test/t/func_if.test @@ -47,3 +47,7 @@ insert t1 values (1),(2); select if(1>2,a,avg(a)) from t1; drop table t1; +# +# Bug #5595 NULLIF() IS NULL returns false if NULLIF() returns NULL +# +SELECT NULLIF(5,5) IS NULL, NULLIF(5,5) IS NOT NULL; |