mariadb/mysql-test/suite/galera/t/lp1276424.test
2015-07-14 16:05:29 -04:00

17 lines
357 B
Text

#
# LP:1276424 Deadlock with insertion of NULL unique ke
#
--source include/galera_cluster.inc
--source include/have_innodb.inc
CREATE TABLE t1 (f1 INT DEFAULT NULL, UNIQUE KEY i1 (f1)) ENGINE=InnoDB;
INSERT INTO t1 VALUES (NULL);
INSERT INTO t1 VALUES (NULL);
--connection node_2
SELECT COUNT(*) = 2 FROM t1;
SELECT f1 IS NULL FROM t1;
DROP TABLE t1;