mariadb/mysql-test/suite/engines/funcs/t/in_enum_null.test

12 lines
562 B
Text

--disable_warnings
DROP TABLE IF EXISTS t7;
--enable_warnings
CREATE TABLE t7(c1 ENUM('a','abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') NULL);
INSERT INTO t7(c1) VALUES(NULL);
INSERT IGNORE INTO t7(c1) VALUES('');
INSERT INTO t7(c1) VALUES('a');
INSERT INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
INSERT IGNORE INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
SELECT * FROM t7;
SELECT COUNT(c1) AS null_rows FROM t7 WHERE c1 IS NULL;
DROP TABLE t7;