mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
parent
42271e4240
commit
754e6c0527
2 changed files with 0 additions and 29 deletions
|
@ -86,20 +86,6 @@ drop table t1;
|
|||
SELECT NULLIF(5,5) IS NULL, NULLIF(5,5) IS NOT NULL;
|
||||
NULLIF(5,5) IS NULL NULLIF(5,5) IS NOT NULL
|
||||
1 0
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a CHAR(10));
|
||||
INSERT INTO t1 VALUES ('aaa'), (NULL), (''), ('bbb');
|
||||
SELECT a, NULLIF(a,'') FROM t1;
|
||||
a NULLIF(a,'')
|
||||
aaa aaa
|
||||
NULL NULL
|
||||
NULL
|
||||
bbb bbb
|
||||
SELECT a, NULLIF(a,'') FROM t1 WHERE NULLIF(a,'') IS NULL;
|
||||
a NULLIF(a,'')
|
||||
NULL NULL
|
||||
NULL
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a CHAR(10));
|
||||
INSERT INTO t1 VALUES ('aaa'), (NULL), (''), ('bbb');
|
||||
SELECT a, NULLIF(a,'') FROM t1;
|
||||
|
|
|
@ -60,21 +60,6 @@ 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;
|
||||
#
|
||||
# Test to check evaluation of MULLIF when the first argument is NULL
|
||||
# (motivated by the Bug 11142)
|
||||
#
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a CHAR(10));
|
||||
INSERT INTO t1 VALUES ('aaa'), (NULL), (''), ('bbb');
|
||||
SELECT a, NULLIF(a,'') FROM t1;
|
||||
SELECT a, NULLIF(a,'') FROM t1 WHERE NULLIF(a,'') IS NULL;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Test for bug #11142: evaluation of NULLIF when the first argument is NULL
|
||||
|
|
Loading…
Reference in a new issue