diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2004-03-16 11:33:03 +0400 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2004-03-16 11:33:03 +0400 |
commit | 5adbc611dd70bcba787e4c2b8c264a0253cdd875 (patch) | |
tree | b96052040aa2326af60424f3196dba87bd2b986f /mysql-test/r/func_if.result | |
parent | bb305494397b4fa02eacfc8b23348255074cbf97 (diff) | |
download | mariadb-git-5adbc611dd70bcba787e4c2b8c264a0253cdd875.tar.gz |
Fix for bug #2629 NULLIF() doesn't behave as described in manual
Diffstat (limited to 'mysql-test/r/func_if.result')
-rw-r--r-- | mysql-test/r/func_if.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result index 0ab41258091..470004d2646 100644 --- a/mysql-test/r/func_if.result +++ b/mysql-test/r/func_if.result @@ -40,6 +40,12 @@ a aa aaa drop table t1; +select NULLIF(NULL,NULL), NULLIF(NULL,1), NULLIF(NULL,1.0), NULLIF(NULL,"test"); +NULLIF(NULL,NULL) NULLIF(NULL,1) NULLIF(NULL,1.0) NULLIF(NULL,"test") +NULL NULL NULL NULL +select NULLIF(1,NULL), NULLIF(1.0, NULL), NULLIF("test", NULL); +NULLIF(1,NULL) NULLIF(1.0, NULL) NULLIF("test", NULL) +1 1.0 test create table t1 (num double(12,2)); insert into t1 values (144.54); select sum(if(num is null,0.00,num)) from t1; |