mariadb/mysql-test/suite/engines/funcs/r/in_set_null.result

22 lines
791 B
Text

DROP TABLE IF EXISTS t7;
CREATE TABLE t7(c1 SET('a','abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') NULL);
INSERT INTO t7(c1) VALUES(NULL);
INSERT INTO t7(c1) VALUES('');
INSERT INTO t7(c1) VALUES('a');
INSERT INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
INSERT IGNORE INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
Warnings:
Warning 1265 Data truncated for column 'c1' at row 1
INSERT INTO t7(c1) VALUES('a,abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
SELECT * FROM t7;
c1
NULL
a
abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij
a,abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij
SELECT COUNT(c1) AS null_rows FROM t7 WHERE c1 IS NULL;
null_rows
0
DROP TABLE t7;