summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_if.test
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2004-09-18 13:06:44 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2004-09-18 13:06:44 +0400
commitd7281b331a79d1e2e3f026bbf71660006ee6df0b (patch)
tree93fd06c086dffc2635a6570d6c71cc5bb22174c9 /mysql-test/t/func_if.test
parente84eb55a0778ca62490c79136b9a09379b02773a (diff)
downloadmariadb-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.test4
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;